Initial Babel 7 migration
This commit is contained in:
parent
f2822180cf
commit
d8379a3d54
4 changed files with 2251 additions and 922 deletions
7
.babelrc
7
.babelrc
|
|
@ -1,16 +1,13 @@
|
|||
{
|
||||
"presets": [
|
||||
[
|
||||
"env",
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"targets": {
|
||||
"esmodules": true
|
||||
},
|
||||
"exclude": ["transform-es2015-classes"]
|
||||
"exclude": ["@babel/transform-classes"]
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": [
|
||||
"transform-object-rest-spread"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
3144
package-lock.json
generated
3144
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
|
@ -9,13 +9,11 @@
|
|||
"url": "https://code.rhodecode.com/rhodecode-enterprise-ce"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.0",
|
||||
"@babel/preset-env": "^7.24.0",
|
||||
"@webcomponents/webcomponentsjs": "^2.8.0",
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-loader": "^7.1.2",
|
||||
"babel-plugin-syntax-class-properties": "^6.13.0",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
||||
"babel-preset-env": "^1.6.0",
|
||||
"babel-loader": "^8.3.0",
|
||||
"core-js": "^3.36.0",
|
||||
"clipboard": "^2.0.1",
|
||||
"copy-webpack-plugin": "^4.4.2",
|
||||
"css-loader": "^0.28.11",
|
||||
|
|
|
|||
|
|
@ -13,20 +13,16 @@ if (process.env.RC_STATIC_DIR) {
|
|||
// doing it this way because it seems that plugin via grunt does not pick up .babelrc
|
||||
let babelRCOptions = {
|
||||
"presets": [
|
||||
["env", {
|
||||
["@babel/preset-env", {
|
||||
"targets": {
|
||||
"esmodules": true
|
||||
},
|
||||
"exclude": [
|
||||
"transform-es2015-classes",
|
||||
"transform-regenerator",
|
||||
"transform-async-to-generator"
|
||||
"@babel/transform-classes",
|
||||
"@babel/transform-regenerator",
|
||||
"@babel/transform-async-generator-functions"
|
||||
]
|
||||
}]
|
||||
],
|
||||
"plugins": [
|
||||
["transform-class-properties", { "loose": true }],
|
||||
"transform-object-rest-spread"
|
||||
]
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue