Skip to content

Commit 41d7a50

Browse files
committed
feat: drop loader-utils dependency
1 parent fda411b commit 41d7a50

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/loader.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
// @ts-nocheck
33
'use strict';
44
const _ = require('lodash');
5-
const loaderUtils = require('loader-utils');
65

76
module.exports = function (source) {
87
// Get templating options
9-
const options = this.query !== '' ? loaderUtils.getOptions(this) : {};
8+
const options = this.getOptions();
109
const force = options.force || false;
1110

1211
const allLoadersButThisOne = this.loaders.filter(function (loader) {

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"css-loader": "5.0.1",
3535
"cz-conventional-changelog": "2.1.0",
3636
"dir-compare": "1.7.2",
37-
"html-loader": "2.0.0",
37+
"html-loader": "2.1.1",
3838
"jest": "26.5.3",
3939
"mini-css-extract-plugin": "1.0.0",
4040
"pug": "3.0.2",
@@ -52,7 +52,6 @@
5252
"dependencies": {
5353
"@types/html-minifier-terser": "^5.0.0",
5454
"html-minifier-terser": "^5.0.1",
55-
"loader-utils": "^2.0.0",
5655
"lodash": "^4.17.20",
5756
"pretty-error": "^2.1.1",
5857
"tapable": "^2.0.0"

0 commit comments

Comments
 (0)