-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
plugin request: Handle data:mime,<data> urls #125
Comments
@frank-dspeed thanks for opening an issue here for this. I've updated your issue with the content from the original rollup/rollup issue. That's the better way to go, since plugin maintainers and contributors are more likely to take up the effort without the extra friction of referencing and parsing another issue (we're all operating here on limited, volunteered time and availability.) |
For reference, here's Node's documentation on this import approach https://nodejs.org/api/esm.html#esm_data_imports Discussion about node's implementation nodejs/node#28614 The commit to Node including their method for parsing the data uri nodejs/node@9fd9efa#diff-a7c0a5f3e4fc8503fefebbe82071bc38 |
I've begun work on this plugin in the @LarsDenBakker saw your comment on the webpack issue and thought this might interest you. |
Indeed I need one as well, I ended up writing my own but it's good to standardize. |
@LarsDenBakker yes i need it also for my esm-loader module to support cross platform importScript |
Request Checklist:
New Plugin Use Case
I would like to import code as a module from a
data:{mime}
declaration.New Plugin Proposal
Perhaps
@rollup/plugin-data-mime
. The plugin could look like:The text was updated successfully, but these errors were encountered: