Skip to content

Commit 89c3f30

Browse files
committed
fix(index): do not fail when no parameter passed in
1 parent 85bab67 commit 89c3f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as webpack from 'webpack'
88
*
99
* See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
1010
*/
11-
export = function uglify({debug = false}) {
11+
export = function uglify({debug = false} = {}) {
1212
return function uglify(this: WebpackConfig): WebpackConfig {
1313
const options = debug ? {
1414
beautify: true, //debug

0 commit comments

Comments
 (0)