Skip to content

Commit

Permalink
[fix] add type control for opts.build.define
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredleechn committed Nov 4, 2015
1 parent b74a16e commit c6c7847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function getWebpackOpts(opts, callback) {
}));
}

if(opts.build.define){
if(opts.build.define && typeof(opts.build.define) === 'string'){

var pkgDefine = {};

Expand Down

0 comments on commit c6c7847

Please sign in to comment.