Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 41d7a50

Browse filesBrowse files
committed
feat: drop loader-utils dependency
1 parent fda411b commit 41d7a50
Copy full SHA for 41d7a50

File tree

Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed

‎lib/loader.js

Copy file name to clipboardExpand all lines: lib/loader.js
+1-2Lines changed: 1 addition & 2 deletions
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

Copy file name to clipboardExpand all lines: package.json
+1-2Lines changed: 1 addition & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.