We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loader: { '.wasm': 'copy' }
adapter-vercel
1 parent a6338a0 commit 348029bCopy full SHA for 348029b
.changeset/olive-rings-eat.md
@@ -0,0 +1,5 @@
1
+---
2
+"@sveltejs/adapter-vercel": patch
3
4
+
5
+fix: Copy .wasm files during build
packages/adapter-vercel/index.js
@@ -117,7 +117,10 @@ const plugin = function (defaults = {}) {
117
format: 'esm',
118
external: config.external,
119
sourcemap: 'linked',
120
- banner: { js: 'globalThis.global = globalThis;' }
+ banner: { js: 'globalThis.global = globalThis;' },
121
+ loader: {
122
+ '.wasm': 'copy'
123
+ }
124
});
125
126
write(
0 commit comments