Skip to content

Commit

Permalink
fix: set same marko linked config in all compiler options (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey authored Oct 25, 2024
1 parent 558789f commit d5fe7ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-peaches-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/vite": patch
---

Fixes a caching regression caused by having a different SSR config compared to the rest of the configs and using that in a transform (which is cached).
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,16 @@ export default function markoPlugin(opts: Options = {}): vite.Plugin[] {
},
};

if (linked) {
(baseConfig as any).markoViteLinked = linked;
}

ssrConfig = {
...baseConfig,
resolveVirtualDependency,
output: "html",
};

if (linked) {
(ssrConfig as any).markoViteLinked = linked;
}

domConfig = {
...baseConfig,
resolveVirtualDependency,
Expand Down

0 comments on commit d5fe7ef

Please sign in to comment.