Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Fix: bundle for web, preserve modules for Node
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Feb 21, 2023
1 parent 9a4a1a1 commit 5c6f898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default defineConfig(async () => {
// have explicit tests ensuring both the default and named
// exports are consistent with the existing public API.
exports: 'named',
preserveModules: isWeb,
preserveModules: !isWeb,
},
treeshake: true,
},
Expand Down

0 comments on commit 5c6f898

Please sign in to comment.