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

Making es-module-shims optional #2576

Open
guybedford opened this issue Jul 28, 2024 · 0 comments
Open

Making es-module-shims optional #2576

guybedford opened this issue Jul 28, 2024 · 0 comments

Comments

@guybedford
Copy link
Member

With better native import map support these days, we should improve the es-module-shims rules:

  • We should only inject es-module-shims when using features that require polyfilling (eg Wasm modules / CSS modules etc)
  • We should detect if es-module-shims is already used in an HTML injection, and take that preference as the existing preference

With the above, when injecting a standard import map workflow, es-module-shims shouldn't get pulled in by default.

It would also be good to have a flag to define these injection rules - --esms | --no-esms | --esms=auto as default kind of thing

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