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

Commit 0c0be96

Browse files
committed
fix: simplify rollup external dependencies and add superdoc styles
1 parent 1a71372 commit 0c0be96

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "superdoc/dist/style.css";
12
import {
23
useRef,
34
useState,

vite.config.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,11 @@ export default defineConfig({
1010
fileName: (format) => (format === 'es' ? 'index.mjs' : 'index.js'),
1111
},
1212
rollupOptions: {
13-
external: ['react', 'react-dom', 'superdoc'],
14-
output: {
15-
globals: {
16-
react: 'React',
17-
'react-dom': 'ReactDOM',
18-
superdoc: 'SuperDoc'
19-
}
20-
}
13+
external: ['react', 'react-dom'],
2114
},
2215
},
2316
plugins: [
2417
react(),
2518
dts()
2619
],
27-
});
20+
});

0 commit comments

Comments
 (0)