diff --git a/lib/loader.js b/lib/loader.js index bd17fe88..592e45b4 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -2,11 +2,10 @@ // @ts-nocheck 'use strict'; const _ = require('lodash'); -const loaderUtils = require('loader-utils'); module.exports = function (source) { // Get templating options - const options = this.query !== '' ? loaderUtils.getOptions(this) : {}; + const options = this.getOptions(); const force = options.force || false; const allLoadersButThisOne = this.loaders.filter(function (loader) { diff --git a/package.json b/package.json index abf5743e..e6d34768 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "css-loader": "5.0.1", "cz-conventional-changelog": "2.1.0", "dir-compare": "1.7.2", - "html-loader": "2.0.0", + "html-loader": "2.1.1", "jest": "26.5.3", "mini-css-extract-plugin": "1.0.0", "pug": "3.0.2", @@ -52,7 +52,6 @@ "dependencies": { "@types/html-minifier-terser": "^5.0.0", "html-minifier-terser": "^5.0.1", - "loader-utils": "^2.0.0", "lodash": "^4.17.20", "pretty-error": "^2.1.1", "tapable": "^2.0.0"