Skip to content

Commit 7351422

Browse files
committed
chore: simplify Babel configuration
Signed-off-by: Jon Koops <[email protected]>
1 parent a565079 commit 7351422

File tree

4 files changed

+855
-2051
lines changed

4 files changed

+855
-2051
lines changed

babel.config.js

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
module.exports = {
2-
presets: [
3-
[
4-
'@babel/preset-env',
5-
{
6-
targets: {
7-
esmodules: true
8-
}
9-
}
10-
],
11-
'@babel/preset-typescript',
12-
'@babel/preset-react'
13-
],
14-
plugins: [
15-
['@babel/plugin-proposal-decorators', { legacy: true }],
16-
'@babel/plugin-proposal-optional-chaining',
17-
'@babel/plugin-proposal-class-properties',
18-
'@babel/plugin-proposal-object-rest-spread'
19-
]
2+
presets: ['@babel/preset-typescript', '@babel/preset-react'],
3+
plugins: ['@babel/plugin-transform-modules-commonjs']
204
};

package.json

+8-14
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,10 @@
2424
},
2525
"homepage": "https://github.com/patternfly/patternfly-react#readme",
2626
"devDependencies": {
27-
"@babel/core": "^7.21.8",
28-
"@babel/plugin-proposal-class-properties": "^7.18.6",
29-
"@babel/plugin-proposal-decorators": "^7.21.0",
30-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
31-
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
32-
"@babel/plugin-proposal-private-methods": "^7.18.6",
33-
"@babel/plugin-proposal-private-property-in-object": "^7.21.0",
34-
"@babel/preset-env": "^7.21.5",
35-
"@babel/preset-react": "^7.18.6",
36-
"@babel/preset-typescript": "^7.21.5",
27+
"@babel/core": "^7.24.3",
28+
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
29+
"@babel/preset-react": "^7.24.1",
30+
"@babel/preset-typescript": "^7.24.1",
3731
"@octokit/rest": "^20.0.0",
3832
"@testing-library/jest-dom": "^5.16.5",
3933
"@testing-library/react": "^13.4.0",
@@ -43,8 +37,7 @@
4337
"@types/react-dom": "^18",
4438
"@typescript-eslint/eslint-plugin": "^5.59.2",
4539
"@typescript-eslint/parser": "^5.59.2",
46-
"babel-jest": "^27.2.5",
47-
"jest-transform-stub": "^2.0.0",
40+
"babel-jest": "^29.7.0",
4841
"concurrently": "^7.6.0",
4942
"eslint": "^8.39.0",
5043
"eslint-plugin-markdown": "^3.0.0",
@@ -56,6 +49,7 @@
5649
"husky": "^4.3.0",
5750
"jest": "27.2.5",
5851
"jest-cli": "27.2.5",
52+
"jest-transform-stub": "^2.0.0",
5953
"lerna": "^7.1.5",
6054
"lint-staged": "^14.0.0",
6155
"mutation-observer": "^1.0.3",
@@ -64,9 +58,9 @@
6458
"react": "^18",
6559
"react-dom": "^18",
6660
"surge": "^0.23.1",
61+
"ts-node": "^10.9.1",
6762
"ts-patch": "^2.1.0",
68-
"typescript": "^4.7.4",
69-
"ts-node": "^10.9.1"
63+
"typescript": "^4.7.4"
7064
},
7165
"scripts": {
7266
"build": "yarn clean && yarn build:generate && yarn build:esm && yarn build:cjs && yarn build:subpaths && yarn build:single:packages",

packages/react-docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@patternfly/react-tokens": "^5.3.0-prerelease.2"
3434
},
3535
"devDependencies": {
36-
"@patternfly/documentation-framework": "^5.0.15",
36+
"@patternfly/documentation-framework": "^5.8.2",
3737
"@patternfly/patternfly-a11y": "4.3.1",
3838
"rimraf": "^2.6.3",
3939
"shx": "^0.3.4"

0 commit comments

Comments
 (0)