Skip to content

Commit

Permalink
Use React 17+ jsx transform
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed May 13, 2024
1 parent f687256 commit 3628979
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
},
},
],
'@babel/preset-react',
['@babel/preset-react', {runtime: 'automatic'}],
'@babel/preset-flow',
],
};
2 changes: 1 addition & 1 deletion packages/lexical-devtools/wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default defineConfig({
},
],
],
presets: ['@babel/preset-react'],
presets: [['@babel/preset-react', {runtime: 'automatic'}]],
}),
react(),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/lexical-playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default defineConfig(({command}) => {
},
],
],
presets: ['@babel/preset-react'],
presets: [['@babel/preset-react', {runtime: 'automatic'}]],
}),
react(),
viteCopyEsm(),
Expand Down
2 changes: 1 addition & 1 deletion packages/lexical-playground/vite.prod.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default defineConfig({
exclude: '/**/node_modules/**',
extensions: ['jsx', 'js', 'ts', 'tsx', 'mjs'],
plugins: ['@babel/plugin-transform-flow-strip-types'],
presets: ['@babel/preset-react'],
presets: [['@babel/preset-react', {runtime: 'automatic'}]],
}),
react(),
viteCopyEsm(),
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async function build(name, inputFile, outputPath, outputFile, isProd, format) {
tsconfig: path.resolve('./tsconfig.build.json'),
},
],
'@babel/preset-react',
['@babel/preset-react', {runtime: 'automatic'}],
],
}),
{
Expand Down

0 comments on commit 3628979

Please sign in to comment.