Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit b6575fd

Browse files
authored
Merge pull request #39 from maxim-devereaux/options-handling
Bug: use getOptions instead of parseQuery for handling options object
2 parents 02f3a50 + a059d94 commit b6575fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (indexContent) {
1111
let loaderPath = 'node_modules' + path.sep + '@kirschbaum-development' + path.sep + 'laravel-translations-loader' + path.sep + 'all.js';
1212

1313
try {
14-
options = loaderUtils.parseQuery(this.query);
14+
options = loaderUtils.getOptions(this);
1515
} catch (e) { }
1616

1717
if (path.dirname(this.resource).includes(path.dirname(loaderPath))) {

json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function (indexContent) {
99
let loaderPath = 'node_modules' + path.sep + '@kirschbaum-development' + path.sep + 'laravel-translations-loader' + path.sep + 'json.js';
1010

1111
try {
12-
options = loaderUtils.parseQuery(this.query);
12+
options = loaderUtils.getOptions(this);
1313
} catch (e) { }
1414

1515
if (path.dirname(this.resource).includes(path.dirname(loaderPath))) {

0 commit comments

Comments
 (0)