Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit f10f1c4

Browse files
committed
Merge branch 'make-options-optional'
2 parents fcf083e + 47689c3 commit f10f1c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ module.exports = function loader(originalSource, inputSourceMap) {
217217
const config = merge(
218218
{},
219219
defaultConfig,
220-
this.options ? this.options[options.config || 'closureLoader'] : {},
220+
this.options
221+
? this.options[(options && options.config) || 'closureLoader']
222+
: {},
221223
options,
222224
);
223225

0 commit comments

Comments
 (0)