Open ops-gaurav opened 4 years ago
This document is regarding the updating of react-starter as per node 10.17.0 LTS. We are making changes to the packages updates by making sure that everything is working fine.
react-starter
Following are the admin panel changelogs:
npm uninstall --save babel-core babel-loader babel-preset-es2015 babel-preset-react webpack
npm install --save webpack@4.42.0
npm uninstall --save-dev extract-text-webpack-plugin html-webpack-plugin
npm install --save-dev @babel/core@7.9.0 @babel/plugin-transform-runtime@7.9.0 @babel/preset-react@7.9.4 @babel/register@7.9.0 babel-loader@8.1.0 babel-preset-es2015@6.24.1 extract-text-webpack-plugin@4.0.0-beta.0 html-webpack-plugin@3.2.0 webpack-cli@3.3.11
.babelrc
{ "presets": ["@babel/react"], "plugins": [ [ "@babel/plugin-transform-runtime", { "regenerator": true } ] ] }
webpack.config.js
query
babel-loader
{ test: /\.jsx?/, include: APP_DIR, loader: 'babel-loader', query: { presets: ['es2015'], }, },
which now becomes:
{ test: /\.jsx?/, include: APP_DIR, loader: 'babel-loader', },
Tried this with 3-4 projects and fix is working very smoothly.
This document is regarding the updating of
react-starter
as per node 10.17.0 LTS. We are making changes to the packages updates by making sure that everything is working fine.Following are the admin panel changelogs:
.babelrc
for the latest react configuration.webpack.config.js
file by removing thequery
frombabel-loader
rules which was :which now becomes: