-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Request] Generate an importmap tag #3883
Comments
I'm not sure what esbuild need to do here. Can you provide a minimal showcase about how did you use esbuild and what you expect to happen? If you externalizes some modules and want esbuild to generate an importmap that resolves the module to bundled file, like |
Basically if something is going to import files dynamically (like lazy loading a module) the imports are not replaced on those.
For those cases the import of npm libraries will fail.
Generating an importmap type script tag with a list of bundled modules all pointing to the bundled files in public folders fixes the issue.
The text was updated successfully, but these errors were encountered: