Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #798 from papandreou/fix/encodeNamesCheck
Browse files Browse the repository at this point in the history
Fix bad defaults.encodeNames check
  • Loading branch information
guybedford committed Apr 6, 2017
2 parents 28cefe0 + de2f05b commit dfbb3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ function processCompileOpts(options, defaults) {
extend(opts, defaults);
extend(opts, options);

if (options.encodeNames && (!'encodeNames' in defaults))
if (options.encodeNames && !('encodeNames' in defaults))
throw new Error('encodeNames is only supported for buildStatic.');

if (typeof opts.production != 'boolean')
Expand Down

0 comments on commit dfbb3c4

Please sign in to comment.