Webpack 4 to 5 migration prep
This commit is contained in:
parent
d8379a3d54
commit
581367d1f6
3 changed files with 33 additions and 14 deletions
12
.babelrc
12
.babelrc
|
|
@ -6,8 +6,18 @@
|
||||||
"targets": {
|
"targets": {
|
||||||
"esmodules": true
|
"esmodules": true
|
||||||
},
|
},
|
||||||
"exclude": ["@babel/transform-classes"]
|
"exclude": [
|
||||||
|
"@babel/transform-classes",
|
||||||
|
"@babel/plugin-transform-class-properties",
|
||||||
|
"@babel/plugin-transform-private-methods",
|
||||||
|
"@babel/plugin-transform-private-property-in-object"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
["@babel/plugin-transform-class-properties", { "loose": true }],
|
||||||
|
["@babel/plugin-transform-private-methods", { "loose": true }],
|
||||||
|
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
25
package.json
25
package.json
|
|
@ -10,14 +10,16 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.0",
|
"@babel/core": "^7.24.0",
|
||||||
|
"@babel/plugin-transform-private-methods": "^7.24.0",
|
||||||
|
"@babel/plugin-transform-private-property-in-object": "^7.24.0",
|
||||||
"@babel/preset-env": "^7.24.0",
|
"@babel/preset-env": "^7.24.0",
|
||||||
"@webcomponents/webcomponentsjs": "^2.8.0",
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
||||||
"babel-loader": "^8.3.0",
|
"babel-loader": "^9.1.3",
|
||||||
"core-js": "^3.36.0",
|
"core-js": "^3.36.0",
|
||||||
"clipboard": "^2.0.1",
|
"clipboard": "^2.0.1",
|
||||||
"copy-webpack-plugin": "^4.4.2",
|
"copy-webpack-plugin": "^12.0.2",
|
||||||
"css-loader": "^0.28.11",
|
"css-loader": "^7.1.2",
|
||||||
"exports-loader": "^0.6.4",
|
"exports-loader": "^5.0.0",
|
||||||
"favico.js": "^0.3.10",
|
"favico.js": "^0.3.10",
|
||||||
"filepond": "^4.32.10",
|
"filepond": "^4.32.10",
|
||||||
"grunt": "^1.6.1",
|
"grunt": "^1.6.1",
|
||||||
|
|
@ -28,24 +30,23 @@
|
||||||
"grunt-contrib-less": "^3.0.0",
|
"grunt-contrib-less": "^3.0.0",
|
||||||
"grunt-contrib-watch": "^1.1.0",
|
"grunt-contrib-watch": "^1.1.0",
|
||||||
"grunt-terser": "^2.0.0",
|
"grunt-terser": "^2.0.0",
|
||||||
"grunt-webpack": "^4.0.3",
|
"grunt-webpack": "^6.0.0",
|
||||||
"html-loader": "^0.4.4",
|
"html-loader": "^5.1.0",
|
||||||
"html-webpack-plugin": "^3.2.0",
|
"html-webpack-plugin": "^5.6.0",
|
||||||
"imports-loader": "^0.7.1",
|
"imports-loader": "^5.0.0",
|
||||||
"install": "^0.13.0",
|
"install": "^0.13.0",
|
||||||
"jquery": "^3.7.1",
|
"jquery": "^3.7.1",
|
||||||
"jshint": "^2.13.6",
|
"jshint": "^2.13.6",
|
||||||
"luxon": "^3.7.2",
|
"luxon": "^3.7.2",
|
||||||
"mark.js": "8.11.1",
|
"mark.js": "8.11.1",
|
||||||
"mousetrap": "^1.6.1",
|
"mousetrap": "^1.6.1",
|
||||||
"raw-loader": "1.0.0-beta.0",
|
|
||||||
"sticky-sidebar": "3.3.1",
|
"sticky-sidebar": "3.3.1",
|
||||||
"style-loader": "^0.21.0",
|
"style-loader": "^4.0.0",
|
||||||
"sweetalert2": "^11.26.3",
|
"sweetalert2": "^11.26.3",
|
||||||
"ts-loader": "^1.3.3",
|
"ts-loader": "^1.3.3",
|
||||||
"waypoints": "4.0.1",
|
"waypoints": "4.0.1",
|
||||||
"webpack": "4.46.0",
|
"webpack": "^5.95.0",
|
||||||
"webpack-cli": "3.3.12"
|
"webpack-cli": "^5.1.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lit": "^2.8.0",
|
"lit": "^2.8.0",
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,17 @@ let babelRCOptions = {
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"@babel/transform-classes",
|
"@babel/transform-classes",
|
||||||
"@babel/transform-regenerator",
|
"@babel/transform-regenerator",
|
||||||
"@babel/transform-async-generator-functions"
|
"@babel/transform-async-generator-functions",
|
||||||
|
"@babel/plugin-transform-class-properties",
|
||||||
|
"@babel/plugin-transform-private-methods",
|
||||||
|
"@babel/plugin-transform-private-property-in-object"
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
["@babel/plugin-transform-class-properties", { "loose": true }],
|
||||||
|
["@babel/plugin-transform-private-methods", { "loose": true }],
|
||||||
|
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue