-
Notifications
You must be signed in to change notification settings - Fork 14
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
Upgrade react-scripts and webpack when react-scripts uses webpack 4 as a dev dependency #708
Comments
Note: The release with webpack 4 will be react-scripts 2 sauce |
https://reactjs.org/blog/2018/10/01/create-react-app-v2.html It has arrived! 🍾 Thanks for finding the link @karikushi |
I've started on this, but as it's the weekend now I'm just going to leave a log of what's been happening on the branch over at issue-708-upgrade-react-scripts.
updated react-scripts installed babel deps from 6-7 upgraded to jest 23 to work with babel 7 installed babel 6-7 bridge package so they worked again removed polyfill=false from transform-runtime options updated eslint dependency installed webpack 4.19.1 in all modules with custom webpack build... wait for it. Installed webpack-cli, a new error appears! Removed the uglify plugin, beacause it happens by default without config now. Apply changes to all webpack configs... Search for babel-polyfill in interbit-ui-tools and remove it Interbit-ui-components has chunking error from ExtractTextPlugin and this package will not be upgraded to work with webpack 4, so use mini-css-extract-plugin instead. (webpack-contrib/extract-text-webpack-plugin#701 (comment)) Do not use documented publicPath option on css loader for outputPath - instead add it to the module config filename run build for interbit-template added browser support to package.json fix interbit-template build error by aligning import/export/module.exports/require usage with babel 7 expected usage Apply babel 7 exporting rule changes to all app-* repos with remaining build issues Investigate failing tests in app-account... importing our webpack modules leads to TypeError: Cannot assign to read only property 'exports' of object '#' Read docs on @babel/plugin-transform-runtime and fix some deps and simplify babelrc files (we are specifying things that are already default in new version) related to it per documentation Per the issue comment, set the sourceType to "unambigious" in babelrc for interbit-covenant-tools TODO:
|
Error about not using mode to run webpack, defaulting to production Crypto of undefined, where are you coming from?
|
Webpack 4 has nicer configuration options for compiling SASS to CSS and then exporting to a file. Once react-scripts is updated so that it uses webpack 4 as a dev dependency:
The text was updated successfully, but these errors were encountered: