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 importmaps inside index.html #61

Open
schlichtanders opened this issue Apr 19, 2024 · 0 comments
Open

Support importmaps inside index.html #61

schlichtanders opened this issue Apr 19, 2024 · 0 comments

Comments

@schlichtanders
Copy link

Is your feature request related to a problem? Please describe.
I want to bundle a browser ready website which has an importmap defined as part of its index.html. Currently browsers do not support externally defined importmaps, but they most be inlined into the .html file.

It would be really cool, if one could package such a self-described website.

Describe the solution you'd like
While searching through the web, it seams that packup with its deno support and --import-map flag for external importmaps is closest to fulfilling this role of being able to pack a website .html with importmaps defined inside.

It would be great if packup could support this.

Describe alternatives you've considered I am considering writing a custom resolver for parcel, but that is quite tough. I haven't found any ready solution for this. jspm.io has other problems and "bundles" importmaps by not bundling them, which is not an option for me. I really like to bundle all dependencies in order to not rely on other cdn being available for production use.

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