-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Cannot turn off es5 compile #4948
Comments
Looking at https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/config/webpack.config.prod.js isn't the minimizer just hard coded to 5? optimization: { |
Oh never mind the ecma: 5 hard code because changing it to 6 wouldn't help. I think you have to use https://www.npmjs.com/package/uglify-es instead of UglifyJS. |
Hi! Dependencies will be compiled in v2 so this won't be an issue anymore. See #5024, thanks! |
In package.json
"browserslist": {
"development": [
"last 1 chrome versions"
],
"production": [
"last 1 chrome versions"
]
},
"devDependencies": {
"enzyme": "^3.5.0",
"react-scripts": "2.0.0-next.a671462c",
"redux-logger": "^3.0.6",
"redux-testkit": "^1.0.6",
"selenium-webdriver": "^4.0.0-alpha.1",
"source-map-explorer": "^1.6.0",
"standard": "^11.0.1"
}
but
(main) disrael@disrael-Lemur:~/dev/uclusion_web_ui$ npm run-script build
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
Read more here: http://bit.ly/2tRViJ9
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:
react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Where the error message is pointing to issues compiling to es5.
#4421 was closed but without sufficient documentation to achieve an es6 only compile.
The text was updated successfully, but these errors were encountered: