Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions website/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ export default defineConfig({
// the default 'iife' worker format cannot handle the top-level await in the
// wasm package, which fails the build. format:'es' fixes the nested worker.
worker: { format: 'es' },
// @cloudflare/vite-plugin emits Worker source maps unless build.sourcemap says
// otherwise. They nearly double the modules `void deploy` uploads (~330 .map
// files on top of ~410 .js), which pushed the Worker upload past its timeout.
// The client never had maps, so this only changes the Worker output.
build: { sourcemap: false },
resolve: {
// The playground worker imports the public `@napi-rs/image` API, but in the
// browser that wrapper's `main` (index.js) is the universal NATIVE loader — it
Expand Down
Loading