Tusooa Zhu 2022-07-22 12:12:54 -04:00
parent f3eb079270
commit 6deb02490b
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -30,7 +30,7 @@ module.exports = {
} }
}, },
resolve: { resolve: {
extensions: ['.js', '.jsx', '.vue'], extensions: ['.mjs', '.js', '.jsx', '.vue'],
modules: [ modules: [
path.join(__dirname, '../node_modules') path.join(__dirname, '../node_modules')
], ],
@ -108,6 +108,11 @@ module.exports = {
} }
} }
}, },
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
}
] ]
}, },
plugins: [ plugins: [