field-form icon indicating copy to clipboard operation
field-form copied to clipboard

Remove babel polyfill from ESM output

Open crimx opened this issue 5 years ago • 2 comments

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 avatar Apr 28 '20 03:04 crimx

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.

crimx avatar Apr 28 '20 03:04 crimx

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

guoyunhe avatar Jan 29 '24 08:01 guoyunhe