fix(webpack): resolve .wasm extension with lower priority (#10676)

This commit is contained in:
Yuyao Nie 2022-09-03 20:52:46 +08:00 committed by GitHub
parent 2dee162360
commit dd3ed75168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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