Skip to content

Commit

Permalink
fix: ssr bundled Marko files in build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Oct 13, 2023
1 parent 72035a8 commit 701d0f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-peas-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/vite": patch
---

Fix regression which prevented SSR cjs Marko files from being properly bundled.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ export default function markoPlugin(opts: Options = {}): vite.Plugin[] {

if (!query) {
if (
!isBuild &&
/[\\/]node_modules[\\/]/.test(id) &&
getModuleType(id) === "cjs"
) {
Expand Down

0 comments on commit 701d0f9

Please sign in to comment.