Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 830b009

Browse files
authored
fix: remove dedupe + add dev react runtime (#20)
1 parent 3eb8f25 commit 830b009

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

demo/vite.config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ import path from 'path';
44

55
export default defineConfig({
66
plugins: [react()],
7-
base: '/',
8-
resolve: {
9-
alias: {
10-
'superdoc/dist/style.css': path.resolve(__dirname, '../node_modules/superdoc/dist/style.css')
11-
},
12-
dedupe: ['react', 'react-dom', 'react/jsx-runtime']
13-
}
7+
base: '/'
148
});

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
fileName: (format) => (format === 'es' ? 'index.mjs' : 'index.js'),
1111
},
1212
rollupOptions: {
13-
external: ['react', 'react-dom', 'react/jsx-runtime', 'superdoc'],
13+
external: ['react', 'react-dom', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'superdoc'],
1414
},
1515
},
1616
plugins: [

0 commit comments

Comments
 (0)