Skip to content

Commit 5da9e2a

Browse files
committed
make sure jsx runtime isn't bundled
1 parent e0fdd69 commit 5da9e2a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rollup.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ import {
77
const format = getBuildFormat();
88
const buildType = isProductionBuild() ? '' : '-dev';
99

10-
const external = ['gl-matrix', 'prop-types', 'react', 'react-dom'];
10+
const external = [
11+
'gl-matrix',
12+
'prop-types',
13+
'react',
14+
'react-dom',
15+
'react/jsx-runtime',
16+
];
1117

1218
const buildFormats = format ? [format] : ['cjs', 'es'];
1319
const builds = buildFormats.map((buildFormat) =>

0 commit comments

Comments
 (0)