Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 0a4fa37

Browse files
author
Markus Wolf
committed
fix: update for webpack 4
this.options is not available in webpack4 so we check and return an empty object instead.
1 parent 39046c0 commit 0a4fa37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var loaderUtils = require('loader-utils');
44
module.exports = function(source) {
55
this.cacheable && this.cacheable();
66
var query = loaderUtils.parseQuery(this.query);
7-
var options = this.options.ejsLoader || {};
7+
var options = this.options ? this.options.ejsLoader || {} : {};
88

99
['escape', 'interpolate', 'evaluate'].forEach(function(templateSetting) {
1010
var setting = query[templateSetting];

0 commit comments

Comments
 (0)