Skip to content

Commit

Permalink
fix: strip out import.meta.vitest blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
stagas committed Oct 6, 2024
1 parent 8307e53 commit 4531509
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 @@ -136,6 +136,10 @@ export default ({ mode }) => {
worker: {
format: 'es',
},
define: {
// strip out import.meta.vitest blocks
'import.meta.vitest': 'undefined',
},
plugins,
build: {
target: 'esnext',
Expand Down

0 comments on commit 4531509

Please sign in to comment.