Skip to content

Commit

Permalink
fix: set correct config for vitest deps optimization (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey authored Feb 27, 2024
1 parent 11ff5ee commit 14834ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-turkeys-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/vite": patch
---

Fix typo from previous vitest fix pr.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ export default function markoPlugin(opts: Options = {}): vite.Plugin[] {
config.resolve.conditions ??= [];
config.resolve.conditions.push("browser");
test.deps ??= {};
test.optimizer ??= {};
test.optimizer.web ??= {};
test.optimizer.web.enabled ??= true;
test.deps.optimizer ??= {};
test.deps.optimizer.web ??= {};
test.deps.optimizer.web.enabled ??= true;
}
}

Expand Down

0 comments on commit 14834ed

Please sign in to comment.