Skip to content

Commit

Permalink
Don't give the default since loaderUtils becomes to return
Browse files Browse the repository at this point in the history
  • Loading branch information
hmsk committed Mar 21, 2020
1 parent 99464c7 commit 5085d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -36,7 +36,7 @@ function getNormalizedMarkdownCompiler (options, isReactEnabled) {
module.exports = function (source) {
if (this.cacheable) this.cacheable();

const options = loaderUtils.getOptions(this) || {}
const options = loaderUtils.getOptions(this);
const requestedMode = Array.isArray(options.mode) ? options.mode : [Mode.HTML];
const enabled = (mode) => requestedMode.includes(mode);

Expand Down

0 comments on commit 5085d3d

Please sign in to comment.