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

Remove babel polyfill from ESM output #119

Open
crimx opened this issue Apr 28, 2020 · 2 comments
Open

Remove babel polyfill from ESM output #119

crimx opened this issue Apr 28, 2020 · 2 comments

Comments

@crimx
Copy link

crimx commented Apr 28, 2020

ESM is for modern usage and should not include babel runtime. The babel regenerator runtime requires unsafe-eval CSP which is a safety concern. Removing the babel polyfill can fix this issue.

@crimx
Copy link
Author

crimx commented Apr 28, 2020

The babel regenerator runtime requires unsafe-eval CSP which is a safety concern.

Looks like they've fixed the issue. It was due to legacy dependencies.

Still recommend to remove the babel runtime for ESM though.

@guoyunhe
Copy link
Contributor

Agree, we use polyfill.io and babel runtime is totally unnecessary in our scenario.

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

2 participants