From dd3ed75168ee2e10b12d86ed9f76ba2eab9f5057 Mon Sep 17 00:00:00 2001 From: Yuyao Nie Date: Sat, 3 Sep 2022 20:52:46 +0800 Subject: [PATCH] fix(webpack): resolve `.wasm` extension with lower priority (#10676) --- packages/webpack/src/config/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack/src/config/base.js b/packages/webpack/src/config/base.js index 7f2d8b3df6..f967b3f89d 100644 --- a/packages/webpack/src/config/base.js +++ b/packages/webpack/src/config/base.js @@ -239,7 +239,7 @@ export default class WebpackBaseConfig { return { resolve: { - extensions: ['.wasm', '.mjs', '.cjs', '.js', '.json', '.vue', '.jsx'], + extensions: ['.mjs', '.cjs', '.js', '.json', '.vue', '.jsx', '.wasm'], alias: this.alias(), modules: webpackModulesDir, plugins: resolvePlugins