Skip to content

Commit 3d341c2

Browse files
author
Frank
committed
Cloudflare Astro: handle large worker payload
1 parent 7251b3f commit 3d341c2

File tree

10 files changed

+644
-14
lines changed

10 files changed

+644
-14
lines changed

pkg/runtime/worker/worker.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ func (w *Runtime) Build(ctx context.Context, input *runtime.BuildInput) (*runtim
6464

6565
slog.Info("loader info", "loader", build.Loader)
6666

67-
loader := map[string]esbuild.Loader{}
67+
loader := map[string]esbuild.Loader{
68+
".wasm": api.LoaderBinary,
69+
}
6870
loaderMap := map[string]api.Loader{
6971
"js": api.LoaderJS,
7072
"jsx": api.LoaderJSX,

0 commit comments

Comments
 (0)