Skip to content

Commit

Permalink
fix: syntax error in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Dec 5, 2023
1 parent 9f1fd2e commit 980ebbc
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 @@ -503,7 +503,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 980ebbc

Please sign in to comment.