ci: update babel

This commit is contained in:
Ron de las Alas 2023-10-16 16:05:18 -04:00
parent 22bbfa47b2
commit 1ad519fcc9
5 changed files with 9323 additions and 41155 deletions

View file

@ -5,5 +5,5 @@
"messagesDir": "./translations/messages/" "messagesDir": "./translations/messages/"
}] }]
], ],
"presets": [["env", {"targets": {"browsers": ["last 3 versions", "Safari >= 8", "iOS >= 8"]}}], "react"] "presets": [["@babel/preset-env", {"targets": {"browsers": ["last 3 versions", "Safari >= 8", "iOS >= 8"]}}], "@babel/preset-react"]
} }

50472
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -46,18 +46,19 @@
"scratch-render-fonts": "^1.0.0-prerelease.20210401210003" "scratch-render-fonts": "^1.0.0-prerelease.20210401210003"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/node": "^7.22.19",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@commitlint/cli": "17.0.3", "@commitlint/cli": "17.0.3",
"@commitlint/config-conventional": "17.0.3", "@commitlint/config-conventional": "17.0.3",
"autoprefixer": "9.7.4", "autoprefixer": "9.7.4",
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-eslint": "10.1.0", "babel-eslint": "10.1.0",
"babel-jest": "23.6.0", "babel-jest": "23.6.0",
"babel-loader": "7.1.5", "babel-loader": "8.2.5",
"babel-plugin-react-intl": "3.0.1", "babel-plugin-react-intl": "3.0.1",
"babel-plugin-transform-object-rest-spread": "6.26.0", "babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-preset-env": "1.7.0",
"babel-preset-react": "6.24.1",
"css-loader": "3.4.0", "css-loader": "3.4.0",
"enzyme": "3.11.0", "enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6", "enzyme-adapter-react-16": "1.15.6",

0
tmp.js Normal file
View file

View file

@ -20,7 +20,10 @@ const base = {
include: path.resolve(__dirname, 'src'), include: path.resolve(__dirname, 'src'),
options: { options: {
plugins: ['transform-object-rest-spread'], plugins: ['transform-object-rest-spread'],
presets: [['env', {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}], 'react'] presets: [
['@babel/preset-env', {
targets: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}],
'@babel/preset-react']
} }
}, },
{ {