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": [
|
"presets": [
|
||||||
[
|
[
|
||||||
"env",
|
"@babel/preset-env",
|
||||||
{
|
{
|
||||||
"targets": {
|
"targets": {
|
||||||
"esmodules": true
|
"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"
|
"url": "https://code.rhodecode.com/rhodecode-enterprise-ce"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.24.0",
|
||||||
|
"@babel/preset-env": "^7.24.0",
|
||||||
"@webcomponents/webcomponentsjs": "^2.8.0",
|
"@webcomponents/webcomponentsjs": "^2.8.0",
|
||||||
"babel-core": "^6.26.3",
|
"babel-loader": "^8.3.0",
|
||||||
"babel-loader": "^7.1.2",
|
"core-js": "^3.36.0",
|
||||||
"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",
|
|
||||||
"clipboard": "^2.0.1",
|
"clipboard": "^2.0.1",
|
||||||
"copy-webpack-plugin": "^4.4.2",
|
"copy-webpack-plugin": "^4.4.2",
|
||||||
"css-loader": "^0.28.11",
|
"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
|
// doing it this way because it seems that plugin via grunt does not pick up .babelrc
|
||||||
let babelRCOptions = {
|
let babelRCOptions = {
|
||||||
"presets": [
|
"presets": [
|
||||||
["env", {
|
["@babel/preset-env", {
|
||||||
"targets": {
|
"targets": {
|
||||||
"esmodules": true
|
"esmodules": true
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"transform-es2015-classes",
|
"@babel/transform-classes",
|
||||||
"transform-regenerator",
|
"@babel/transform-regenerator",
|
||||||
"transform-async-to-generator"
|
"@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