Skip to content

Commit

Permalink
feat: updated generateScopedName params to match postcss-modules-scope
Browse files Browse the repository at this point in the history
  • Loading branch information
koga73 committed Dec 21, 2023
1 parent d5f6645 commit 4b24992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ function getModulesPlugins(options, loaderContext) {
localByDefault({ mode }),
extractImports(),
modulesScope({
generateScopedName(exportName) {
generateScopedName(exportName, resourceFile, rawCss, node) {
let localIdent;

if (typeof getLocalIdent !== "undefined") {
Expand All @@ -794,6 +794,7 @@ function getModulesPlugins(options, loaderContext) {
hashDigestLength: localIdentHashDigestLength,
hashStrategy,
regExp: localIdentRegExp,
node,
}
);
}
Expand All @@ -813,6 +814,7 @@ function getModulesPlugins(options, loaderContext) {
hashDigestLength: localIdentHashDigestLength,
hashStrategy,
regExp: localIdentRegExp,
node,
}
);

Expand Down

0 comments on commit 4b24992

Please sign in to comment.