From e7bb03ce731d1411368472915539889be68e5f87 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 7 Oct 2021 18:32:48 +0200 Subject: [PATCH] fix(nitro): always inline `.wasm` (#698) --- src/rollup/plugins/externals.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rollup/plugins/externals.ts b/src/rollup/plugins/externals.ts index 3855a51b3a..c7db152c37 100644 --- a/src/rollup/plugins/externals.ts +++ b/src/rollup/plugins/externals.ts @@ -44,8 +44,8 @@ export function externals (opts: NodeExternalsOptions): Plugin { if (_id.startsWith('.') || opts.inline.find(i => _id.startsWith(i) || id.startsWith(i))) { return null } - // Bundle ts - if (_id.endsWith('.ts')) { + // Bundle ts and wasm (currently - see https://github.com/nuxt/framework/discussions/692) + if (_id.endsWith('.ts') || _id.endsWith('.wasm')) { return null } }