Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed Apr 5, 2024
1 parent 6fe6056 commit 31f3547
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"url": "https://github.com/sponsors/birdofpreyru"
},
"peerDependencies": {
"css-loader": "^7",
"css-loader": ">=6",
"postcss": "^8",
"webpack": "^5"
},
Expand Down
7 changes: 6 additions & 1 deletion src/getLocalIdent.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,16 @@ export default function getLocalIdent(
_compilation: { getPath },
_compiler: {
webpack: {
// This polyfill is required because of:
// This is required for css-loader@7+ compatibility because of:
// https://github.com/webpack-contrib/css-loader/blob/fd18587c1b6d689e3e3a3cc3e6c9fe52f5080181/src/utils.js#L331
util: { createHash },
},
},

// This is presumably required for backward compatibility with older
// css-loader versions.
utils: { createHash },

...loaderContext,
},
localIdentName,
Expand Down

0 comments on commit 31f3547

Please sign in to comment.