Skip to content

Commit

Permalink
chore: simplify Babel configuration (#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored Mar 25, 2024
1 parent a6a8fd2 commit 95ba14c
Show file tree
Hide file tree
Showing 3 changed files with 993 additions and 681 deletions.
12 changes: 4 additions & 8 deletions packages/documentation-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@
"pf-docs-framework": "scripts/cli/cli.js"
},
"dependencies": {
"@babel/core": "7.18.2",
"@babel/plugin-proposal-class-properties": "7.17.12",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-proposal-private-methods": "7.17.12",
"@babel/plugin-proposal-private-property-in-object": "7.17.12",
"@babel/plugin-transform-react-jsx": "7.17.12",
"@babel/preset-env": "7.18.2",
"@babel/core": "^7.24.3",
"@babel/preset-env": "^7.24.3",
"@babel/preset-react": "^7.24.1",
"@mdx-js/util": "1.6.16",
"@patternfly/ast-helpers": "^1.8.1",
"@reach/router": "npm:@gatsbyjs/[email protected]",
"autoprefixer": "9.8.6",
"babel-loader": "9.1.2",
"babel-loader": "^9.1.3",
"camelcase-css": "2.0.1",
"chokidar": "3.5.3",
"clean-webpack-plugin": "4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,12 @@ module.exports = (_env, argv) => {
options: {
cacheDirectory: '.cache/babel',
cacheCompression: false,
presets: [['@babel/preset-env', {
loose: true,
corejs: 3,
useBuiltIns: 'entry',
exclude: ['transform-regenerator', 'transform-async-to-generator'],
modules: false,
targets: "> 0.25%, not dead"
}]],
plugins: [
'@babel/plugin-transform-react-jsx',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-chaining',
["@babel/plugin-proposal-private-methods", { "loose": false }],
["@babel/plugin-proposal-private-property-in-object", { "loose": false }]
presets: [
'@babel/preset-react',
['@babel/preset-env', {
loose: true,
targets: '> 1%, not dead'
}],
],
}
},
Expand Down
Loading

0 comments on commit 95ba14c

Please sign in to comment.