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.
1 parent aa0b921 commit c616077Copy full SHA for c616077
2 files changed
packages/vite/src/node/optimizer/esbuildDepPlugin.ts
@@ -29,6 +29,8 @@ const externalTypes = [
29
'stylus',
30
'pcss',
31
'postcss',
32
+ // wasm
33
+ 'wasm',
34
// known SFC types
35
'vue',
36
'svelte',
packages/vite/src/node/optimizer/scan.ts
@@ -419,10 +419,10 @@ function esbuildScanPlugin(
419
// they are done after the bare import resolve because a package name
420
// may end with these extensions
421
422
- // css & json
+ // css & json & wasm
423
build.onResolve(
424
{
425
- filter: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|json)$/
+ filter: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|json|wasm)$/
426
},
427
externalUnlessEntry
428
)
0 commit comments