Skip to content

Commit

Permalink
chore: update babel 7.26
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 24, 2024
1 parent 2f23d34 commit 4e606ae
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 778 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme",
"dependencies": {
"@babel/core": "^7.25.2",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-react-jsx-self": "^7.24.7",
"@babel/plugin-transform-react-jsx-source": "^7.24.7",
"@types/babel__core": "^7.20.5",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
},
generatorOpts: {
...babelOptions.generatorOpts,
// import attributes parsing available without plugin since 7.26
importAttributesKeyword: 'with',
decoratorsBeforeExport: true,
},
Expand Down
Loading

0 comments on commit 4e606ae

Please sign in to comment.