Skip to content

Commit

Permalink
Merge pull request #15 from marko-js/syntax-error-when-multi-case
Browse files Browse the repository at this point in the history
fix: syntax error in generated code
  • Loading branch information
DylanPiercey authored Dec 5, 2023
2 parents 78f909c + 980ebbc commit e91b6d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wild-mice-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"arc-vite": patch
---

Fix syntax error in generated code when multiple arc conditions used.
2 changes: 1 addition & 1 deletion src/plugins/build-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export function pluginBuildWeb({
matchCodeSep = ":";
}

manifestCode += `:${JSON.stringify(defaultFlaggedAssets.manifest)}`;
manifestCode += `:${JSON.stringify(defaultFlaggedAssets.manifest)};`;
}

manifestCode += `}return {"head": ["<script>console.error('Unable to load adaptive arc files, unknown entry was provided when asking for assets.')</script>"]}};\n`;
Expand Down

0 comments on commit e91b6d5

Please sign in to comment.