Skip to content

Commit

Permalink
set resolve.mainFields
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed May 23, 2024
1 parent 61a00a7 commit 248bec2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export default defineConfig(lib({
noDts: true,
build: {
target: "node18",
minify: true,
minify: false,
},
resolve: {
mainFields: ["module"],
}
}));

0 comments on commit 248bec2

Please sign in to comment.