-
Notifications
You must be signed in to change notification settings - Fork 2
Support bundled esm #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Entelligence AI Vulnerability ScannerStatus: No security vulnerabilities found Your code passed our comprehensive security analysis. Analyzed 2 files in total |
Review Summary🏷️ Draft Comments (8)
🔍 Comments beyond diff scope (1)
|
|
@mdrazak2001 This is ready for comments and review when you have time! |
|
hey @cbouy, sorry for the delay, i will try to have a look at this change in the coming weekend. Thanks for the commit btw! |
First of, thanks for making this library 🙌
This PR fixes issue #1, and implements one of the suggestions from issue #4 (extracting the widget's state from traits) to simplify the code a tiny bit. While making this change I've formatted the file with
ruff, happy to revert that and only keep the code change if you prefer.I've tested it on one of my widget that specifies the
_esmas a path and it worked beautifully!I'm not sure if the same url blob pattern could be used for any of the otherisModuleFormatandisClassFormatcases, it could make things a lot easier but I didn't have an example to play with so I haven't tried.Edit: yup that works, I think it makes things a lot less error prone.
Also added an example in the relevant file.