Skip to content

Commit 44c8ba7

Browse files
committed
fix vueoptions
1 parent 9e4f4d4 commit 44c8ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/markdown-compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = function(source) {
6565
var parser, preprocess;
6666
var params = loaderUtils.getOptions(this) || {};
6767
var vueMarkdownOptions = this._compilation.__vueMarkdownOptions__;
68-
var opts = Object.create(vueMarkdownOptions.__proto__); // inherit prototype
68+
var opts = vueMarkdownOptions ? Object.create(vueMarkdownOptions.__proto__) : {}; // inherit prototype
6969
var preventExtract = false;
7070

7171
opts = Object.assign(opts, params, vueMarkdownOptions); // assign attributes

0 commit comments

Comments
 (0)