From 6d0cc4d18facebaed90c9bb06fa294bf24cb8271 Mon Sep 17 00:00:00 2001 From: mirari <clover4@gmail.com> Date: Mon, 12 Jul 2021 20:43:00 +0800 Subject: [PATCH] fix(common): fix the problem of accidental introduction of vue --- build/webpack.release.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/build/webpack.release.js b/build/webpack.release.js index 39db458..da6ffd5 100644 --- a/build/webpack.release.js +++ b/build/webpack.release.js @@ -1,9 +1,9 @@ var path = require('path') -var config = require('../config') -var utils = require('./utils') +// var config = require('../config') +// var utils = require('./utils') var projectRoot = path.resolve(__dirname, '../') -const webpack = require('webpack') -const merge = require('webpack-merge') +// const webpack = require('webpack') +// const merge = require('webpack-merge') module.exports = { entry: { @@ -21,6 +21,14 @@ module.exports = { // libraryExport: 'default' }, externals: [ + { + vue: { + commonjs: 'vue', + commonjs2: 'vue', + amd: 'vue', + root: 'Vue' + } + }, { viewerjs: { commonjs: 'viewerjs',