Skip to content
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

Support loading plugin from ES Module URL #476

Open
oeway opened this issue Jul 5, 2021 · 0 comments
Open

Support loading plugin from ES Module URL #476

oeway opened this issue Jul 5, 2021 · 0 comments

Comments

@oeway
Copy link
Collaborator

oeway commented Jul 5, 2021

Suggested by @thewtex , it would be cool to load a plugin directly from a ES Module URL which exports setup and run.

I guess in addition to setup and run, we will also need to export an config object containing the meta info of the plugin. For security reasons we should perhaps use a sandboxed iframe to import the module, then inspect what's the plugin type in config, and then decide whether we should leave it in the iframe or move to a web-worker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant