chore(webpack-react-babel): update webpack and babel dependencies
This commit is contained in:
parent
9011a4c50b
commit
98b42aa13b
|
@ -2,5 +2,13 @@
|
|||
"presets": [
|
||||
"@babel/preset-env",
|
||||
"@babel/preset-react"
|
||||
],
|
||||
"plugins": [
|
||||
[
|
||||
"@babel/plugin-transform-runtime",
|
||||
{
|
||||
"regenerator": true
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
|
@ -19,7 +19,15 @@ module.exports = {
|
|||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
include: path.resolve(__dirname, '../src'),
|
||||
use: ['babel-loader'],
|
||||
use: {
|
||||
loader: "babel-loader",
|
||||
options: {
|
||||
presets: [
|
||||
"@babel/preset-env",
|
||||
"@babel/preset-react",
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
//test all *.css using style-loader and css-loader
|
||||
|
|
|
@ -12,5 +12,7 @@ module.exports = merge(common, {
|
|||
static: path.resolve(__dirname, '../dist'),
|
||||
//When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses. Enable devServer.historyApiFallback by setting it to true.
|
||||
historyApiFallback: true,
|
||||
port: 8080,
|
||||
open: true,
|
||||
},
|
||||
});
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -19,15 +19,17 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.23.9",
|
||||
"@babel/plugin-transform-runtime": "7.23.9",
|
||||
"@babel/preset-env": "7.23.9",
|
||||
"@babel/preset-react": "7.23.3",
|
||||
"@babel/runtime": "7.23.9",
|
||||
"babel-loader": "9.1.3",
|
||||
"css-loader": "6.7.3",
|
||||
"html-webpack-plugin": "5.5.3",
|
||||
"style-loader": "3.3.2",
|
||||
"webpack": "5.89.0",
|
||||
"css-loader": "6.10.0",
|
||||
"html-webpack-plugin": "5.6.0",
|
||||
"style-loader": "3.3.4",
|
||||
"webpack": "5.90.2",
|
||||
"webpack-cli": "5.1.4",
|
||||
"webpack-dev-server": "4.15.1",
|
||||
"webpack-dev-server": "5.0.1",
|
||||
"webpack-merge": "5.10.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue