-
Notifications
You must be signed in to change notification settings - Fork 238
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
Proposal: dependency system based on await import
#1587
Comments
The reason external libraries aren't allowed is because we cannot be sure whether the linked URL will always be up or not. For extensions that primarily utilize |
Implemented by #1591 |
This proposal is for automatically converting await import URLs into data URLs when building so it makes reviewers easier to ensure the integrity of dependencies. |
This proposes that as part of the build process it will automatically convert the linked library to JS, since you're 100% right that we can't always rely on 3rd-party dependencies on such critical parts of projects. In the grand scheme of things, this won't affect the front-end and will just make development a bit more readable. |
Extensions are now able to require external libraries via
await import
. When the gallery starts, it downloads all dependencies (viaacorn
parser) and replace their URLs with downloaded data URLs.Example code:
After processing:
There will be a
cache
directory to store downloaded dependencies so that you do not need to download them twice.The text was updated successfully, but these errors were encountered: