You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rollup seems to see this as having no side-effects and tree-shakes it. Whereas in reality the side-effect is an error being thrown.
Repro
I created a minimal repro to showcase that toggling treeshaking through rollup is causing the issue: https://codesandbox.io/s/r0vj2k7znn. See line 22 on the dest/output-*.js files.
Possible Solution
Perhaps this is an issue for rollup. But a quick fix would be to just return the RegExp call:
Issue
When using rollup with babel to inject core-js polyfills, the SUPPORTS_Y check gets truncated from
to
rollup seems to see this as having no side-effects and tree-shakes it. Whereas in reality the side-effect is an error being thrown.
Repro
I created a minimal repro to showcase that toggling treeshaking through rollup is causing the issue: https://codesandbox.io/s/r0vj2k7znn. See line 22 on the
dest/output-*.js
files.Possible Solution
Perhaps this is an issue for rollup. But a quick fix would be to just return the RegExp call:
The text was updated successfully, but these errors were encountered: