Skip to content

Commit

Permalink
fix: don't apply for vite serve mode
Browse files Browse the repository at this point in the history
closes #3
  • Loading branch information
sxzz committed Sep 9, 2024
1 parent e9bea9c commit bc5e567
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export const Unused: UnpluginInstance<Options | undefined, false> =
},

vite: {
apply: 'build',
configResolved(config) {
options.root ||= config.root
},
Expand Down

0 comments on commit bc5e567

Please sign in to comment.