fix(nitro): always inline .wasm (#698)

This commit is contained in:
Daniel Roe 2021-10-07 18:32:48 +02:00 committed by GitHub
parent 06c1222e1f
commit a4f06716be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}