-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Minimizer breaks some Javascript Files when used in polymer-cli #706
Comments
+ t.valueToNode(<objectExpressionNode>) returns an object expression node and again but with a few other effects - it removes the quotes from property names for some unicode which is not supported in Safari and a few other older browsers. So we bail here and let propertyLiterals plugin handle the conversion of StringLiterals to Identifiers. + Fix #627 + Fix #706
+ t.valueToNode(<objectExpressionNode>) returns an object expression node and again but with a few other effects - it removes the quotes from property names for some unicode which is not supported in Safari and a few other older browsers. So we bail here and let propertyLiterals plugin handle the conversion of StringLiterals to Identifiers. + Fix #627 + Fix #706
is this also fixed: https://github.com/Polymer/polymer-cli/issues/886 ?
the \0 will be replaced |
@boopathi can you look if this also works? |
@boopathi Please reopen this! I've now tried again. Issue still exists. You can try. Download jquery.min.js from https://code.jquery.com/jquery-3.2.1.min.js and run babel-minfy on it. Some of the \0 in the file will be replaced with Ascii NUL and break the script! |
There are a few issues on polymer-cli, wich breaks javascript files, when babel/minify is used inside.
https://github.com/Polymer/polymer-cli/issues/633
https://github.com/Polymer/polymer-cli/issues/886
https://github.com/Polymer/polymer-cli/issues/701
i think it's a utf8 encoding issue, but i don't know if it's in polymer-cli or babel or babel-minify. maybe someone here can help out?
The text was updated successfully, but these errors were encountered: