commit: 6deb02490b51df4ab8954b091004de6a5cb05feb
parent f3eb079270f3fe649574393bed9cff191c9153db
Author: Tusooa Zhu <tusooa@kazv.moe>
Date: Fri, 22 Jul 2022 12:12:54 -0400
Fix tests
https://stackoverflow.com/questions/69343038/cant-import-the-named-export-xxxx-from-non-ecmascript-module-only-default-expo
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js
@@ -30,7 +30,7 @@ module.exports = {
}
},
resolve: {
- extensions: ['.js', '.jsx', '.vue'],
+ extensions: ['.mjs', '.js', '.jsx', '.vue'],
modules: [
path.join(__dirname, '../node_modules')
],
@@ -108,6 +108,11 @@ module.exports = {
}
}
},
+ {
+ test: /\.mjs$/,
+ include: /node_modules/,
+ type: 'javascript/auto'
+ }
]
},
plugins: [