Skip to content

Commit

Permalink
fix(cloudflare-pages): add target option as webworker (#153)
Browse files Browse the repository at this point in the history
* fix(cloudflare-pages): add `target` option as `webworker`

* add changeset
  • Loading branch information
yusukebe authored Jul 6, 2024
1 parent 1782639 commit 6fb01bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-turtles-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hono/vite-cloudflare-pages': patch
---

fix: add `target` option as `webworker`
1 change: 1 addition & 0 deletions packages/cloudflare-pages/src/cloudflare-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const cloudflarePagesPlugin = (options?: CloudflarePagesOptions): Plugin
ssr: {
external: options?.external ?? defaultOptions.external,
noExternal: true,
target: 'webworker',
},
build: {
outDir: options?.outputDir ?? defaultOptions.outputDir,
Expand Down

0 comments on commit 6fb01bf

Please sign in to comment.