Skip to content

Commit 3578245

Browse files
committed
Fix up the UMD build
1 parent 55eb491 commit 3578245

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

vite.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export default defineConfig({
4242
rollupOptions: {
4343
external: [
4444
...Object.keys(packageJson.peerDependencies),
45-
'react/jsx-runtime',
4645
'__tests__/*',
4746
'__mocks__/*',
4847
],
@@ -52,14 +51,16 @@ export default defineConfig({
5251
globals: {
5352
react: 'React',
5453
'react-dom': 'ReactDOM',
55-
'react/jsx-runtime': 'react/jsx-runtime',
5654
},
5755
},
5856
},
5957
sourcemap: true,
6058
},
6159
}
6260
),
61+
define: {
62+
'process.env': {},
63+
},
6364
esbuild: {
6465
exclude: [],
6566
// Matches .js and .jsx in __tests__ and .jsx in src

0 commit comments

Comments
 (0)