fix: .wasm extension should have lower priority when resolving modules

in line with https://github.com/webpack/webpack/pull/8448
fixes #3023
This commit is contained in:
Haoqun Jiang
2018-12-12 21:32:41 +08:00
parent ad9ef4cea7
commit 2ac64d6de1
+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = (api, options) => {
webpackConfig.resolve
.extensions
.merge(['.wasm', '.mjs', '.js', '.jsx', '.vue', '.json'])
.merge(['.mjs', '.js', '.jsx', '.vue', '.json', '.wasm'])
.end()
.modules
.add('node_modules')