Skip to content

Commit 2b546ad

Browse files
committed
Check for options
1 parent 0d9a004 commit 2b546ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function generateId(mask = 'xxxxxxxxxx', map = '0123456789abcdef') {
1212
function loader (source) {
1313
const loaderContext = this
1414
const options = loaderUtils.getOptions(loaderContext);
15-
if (options.helpersPath) {
15+
if (options && options.helpersPath) {
1616
try {
1717
const helpers = require(path.resolve(options.helpersPath));
1818
helpers.forEach((helperName) => {

0 commit comments

Comments
 (0)