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

Commit de2f05b

Browse files
committed
Fix bad defaults.encodeNames check.
1 parent 28cefe0 commit de2f05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ function processCompileOpts(options, defaults) {
506506
extend(opts, defaults);
507507
extend(opts, options);
508508

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

512512
if (typeof opts.production != 'boolean')

0 commit comments

Comments
 (0)