Skip to content

Commit

Permalink
chore: fix build error (#595)
Browse files Browse the repository at this point in the history
* chore: fix build error

* chore: resolve ghost deps

---------

Co-authored-by: mutu <[email protected]>
Co-authored-by: Aaron <[email protected]>
  • Loading branch information
3 people authored Aug 6, 2024
1 parent b9820ce commit 81b9913
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 267 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@
"umi": "3.x"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-class-properties": "^7.24.7",
"@babel/plugin-transform-private-methods": "^7.24.7",
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
"@babel/preset-env": "^7.25.3",
"@babel/preset-react": "^7.24.7",
"@changesets/cli": "^2.26.1",
"@types/react": "17.x",
"@types/react-dom": "17.x",
Expand All @@ -72,6 +75,7 @@
"less-loader": "^11.0.0",
"mini-css-extract-plugin": "^2.7.6",
"npm-run-all": "^4.1.5",
"react-hot-loader": "^4.13.1",
"rimraf": "^3.0.2",
"source-map-loader": "^4.0.0",
"style-loader": "^3.3.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/gi-cli/templates/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ module.exports = (env, argv) => {
presets: ['@babel/env', '@babel/preset-react'],
plugins: [
['@babel/plugin-transform-class-properties', { loose: true }],
['@babel/plugin-proposal-private-methods', { loose: true }],
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
['@babel/plugin-transform-private-methods', { loose: true }],
['@babel/plugin-transform-private-property-in-object', { loose: true }],
['react-hot-loader/babel'],
],
},
Expand Down
Loading

0 comments on commit 81b9913

Please sign in to comment.