We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d9a004 commit 2b546adCopy full SHA for 2b546ad
lib/index.js
@@ -12,7 +12,7 @@ function generateId(mask = 'xxxxxxxxxx', map = '0123456789abcdef') {
12
function loader (source) {
13
const loaderContext = this
14
const options = loaderUtils.getOptions(loaderContext);
15
- if (options.helpersPath) {
+ if (options && options.helpersPath) {
16
try {
17
const helpers = require(path.resolve(options.helpersPath));
18
helpers.forEach((helperName) => {
0 commit comments