Skip to content

Commit

Permalink
feat: drop loader-utils dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Mar 7, 2021
1 parent fda411b commit 41d7a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down

0 comments on commit 41d7a50

Please sign in to comment.