Skip to content

Commit 8c50275

Browse files
committed
fix: Use new React jsx transform in rollup config
1 parent 41cef5c commit 8c50275

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rollup.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ function createConfig(umd) {
2626
extensions,
2727
presets: [
2828
'@babel/preset-env',
29-
'@babel/preset-react',
29+
[
30+
'@babel/preset-react',
31+
{
32+
runtime: 'automatic',
33+
},
34+
],
3035
'@babel/preset-typescript',
3136
],
3237
plugins: ['@babel/plugin-transform-runtime'],

0 commit comments

Comments
 (0)