Skip to content

Commit

Permalink
fix: config
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 18, 2024
1 parent 676753e commit 999d259
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default defineConfig({
],
formats: ['cjs', 'es'],
},

rollupOptions: {
external: [
'react',
Expand All @@ -46,6 +47,9 @@ export default defineConfig({
'react/jsx-runtime',
...Object.keys(globals),
],
output: {
preserveModules: true,
},
plugins: [preserveDirectives({})],
},
},
Expand Down

0 comments on commit 999d259

Please sign in to comment.