-
Notifications
You must be signed in to change notification settings - Fork 27
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
Closure compiler artifacts left in the minified bundle #56
Comments
Taking a look at this. Will respond back by EOD tomorrow with changes or a clarification. |
@Andarist Is it possible to get a smaller reproduction? Perhaps something with just the input that is expected to be minified with the options used? |
I'll try to extract one in following days. |
Here you go - https://github.com/Andarist/rollup-closure-symbol-repro Couldn't repro it for a while because changing a function declaration to an arrow function expression causes the "polyfill bloat" to be added to both, keeping it as function declaration doesn't add the bloat to cjs output but adds it to esm. EDIT:// some options passed to the closure plugin are irrelevant, dont have time to slim it down further now, those are exact options used by react |
Taking a look. Thank you so much! |
The issue for this particular example appears to be in transpilation of the Transpilation is triggered in this example because the source is indicated to be exported as ES5. Going to remove the export statements, and try to resolve. |
Released |
@Andarist – Confirmed fixed with |
Great job! Thanks |
Cool! Thanks |
Repro can be found in this PR, you can check out complete output in my comment here.
Basically what I see are things like some kind of scope object gathering properties like
I understand that this can be disabled with
language_out: 'ECMASCRIPT_2015'
, but I'm wondering why this is not added in CJS case but is added for ESM? Could this be prevented altogether in the plugin itself? Without adding extra config like the mentionedlanguage_out
?cc @TrySound
The text was updated successfully, but these errors were encountered: