-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
VERIFIEDfixRecommendation to fix something that is not working,Recommendation to fix something that is not working,
Description
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:
- Uninstalling the following packages:
npm uninstall --save babel-core babel-loader babel-preset-es2015 babel-preset-react webpack
- Add the following package to dependencies:
npm install --save webpack@4.42.0
- Uninstall the following dev dependencies:
npm uninstall --save-dev extract-text-webpack-plugin html-webpack-plugin
- Install the following dev dependencies:
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
- Update the
.babelrcfor the latest react configuration.
{
"presets": ["@babel/react"],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
]
}
- Update the
webpack.config.jsfile by removing thequeryfrombabel-loaderrules which was :
{
test: /\.jsx?/,
include: APP_DIR,
loader: 'babel-loader',
query: {
presets: ['es2015'],
},
},
which now becomes:
{
test: /\.jsx?/,
include: APP_DIR,
loader: 'babel-loader',
},
Metadata
Metadata
Assignees
Labels
VERIFIEDfixRecommendation to fix something that is not working,Recommendation to fix something that is not working,