Skip to content

Commit

Permalink
fix(common): fix the problem of accidental introduction of vue
Browse files Browse the repository at this point in the history
  • Loading branch information
mirari committed Jul 12, 2021
1 parent ef1974d commit 6d0cc4d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions build/webpack.release.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -21,6 +21,14 @@ module.exports = {
// libraryExport: 'default'
},
externals: [
{
vue: {
commonjs: 'vue',
commonjs2: 'vue',
amd: 'vue',
root: 'Vue'
}
},
{
viewerjs: {
commonjs: 'viewerjs',
Expand Down

0 comments on commit 6d0cc4d

Please sign in to comment.