build: external dayjs (#616)

This commit is contained in:
zazzaz 2020-11-18 22:15:52 +08:00 committed by GitHub
parent 096c47ffa5
commit a174187bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,14 +33,17 @@ module.exports = {
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
},
externals: {
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue',
externals: [
{
vue: {
root: 'Vue',
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue',
},
},
},
/^dayjs.*/,
],
plugins: [
new VueLoaderPlugin(),
// new BundleAnalyzerPlugin(),