From 41d7a50516aefd1af2704e3837d5d41351c6199b Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Sun, 7 Mar 2021 16:42:42 +0100 Subject: [PATCH] feat: drop loader-utils dependency --- lib/loader.js | 3 +-- package.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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"