Skip to content

Commit

Permalink
Merge pull request #39 from maxim-devereaux/options-handling
Browse files Browse the repository at this point in the history
Bug: use getOptions instead of parseQuery for handling options object
  • Loading branch information
luisdalmolin authored Aug 30, 2022
2 parents 02f3a50 + a059d94 commit b6575fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion all.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function (indexContent) {
let loaderPath = 'node_modules' + path.sep + '@kirschbaum-development' + path.sep + 'laravel-translations-loader' + path.sep + 'all.js';

try {
options = loaderUtils.parseQuery(this.query);
options = loaderUtils.getOptions(this);
} catch (e) { }

if (path.dirname(this.resource).includes(path.dirname(loaderPath))) {
Expand Down
2 changes: 1 addition & 1 deletion json.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (indexContent) {
let loaderPath = 'node_modules' + path.sep + '@kirschbaum-development' + path.sep + 'laravel-translations-loader' + path.sep + 'json.js';

try {
options = loaderUtils.parseQuery(this.query);
options = loaderUtils.getOptions(this);
} catch (e) { }

if (path.dirname(this.resource).includes(path.dirname(loaderPath))) {
Expand Down

0 comments on commit b6575fd

Please sign in to comment.