diff --git a/demo/vite.config.ts b/demo/vite.config.ts index 83fc0f0..429245a 100644 --- a/demo/vite.config.ts +++ b/demo/vite.config.ts @@ -4,11 +4,5 @@ import path from 'path'; export default defineConfig({ plugins: [react()], - base: '/', - resolve: { - alias: { - 'superdoc/dist/style.css': path.resolve(__dirname, '../node_modules/superdoc/dist/style.css') - }, - dedupe: ['react', 'react-dom', 'react/jsx-runtime'] - } + base: '/' }); diff --git a/vite.config.ts b/vite.config.ts index 7942fee..ce4a033 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ fileName: (format) => (format === 'es' ? 'index.mjs' : 'index.js'), }, rollupOptions: { - external: ['react', 'react-dom', 'react/jsx-runtime', 'superdoc'], + external: ['react', 'react-dom', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'superdoc'], }, }, plugins: [