Skip to content

Commit de19dac

Browse files
committed
Merge branch 'dev'
2 parents c4376ff + 1a6bc6e commit de19dac

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/module.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ module.exports = function (moduleOptions) {
5050

5151
// extend webpack config to output umd library
5252
this.extendBuild((config, { isDev }) => {
53-
if (!isDev) {
54-
config.output = Object.assign(config.output, {
55-
library: `${name}-[name]`,
56-
libraryTarget: 'umd',
57-
jsonpFunction: `webpackJsonp_${name}`
58-
})
59-
}
53+
config.output = Object.assign(config.output, {
54+
library: `${name}-[name]`,
55+
libraryTarget: 'umd',
56+
jsonpFunction: `webpackJsonp_${name}`
57+
})
6058
})
6159

6260
this.addTemplate({

0 commit comments

Comments
 (0)