Skip to content

Commit 4b24992

Browse files
committed
feat: updated generateScopedName params to match postcss-modules-scope
1 parent d5f6645 commit 4b24992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ function getModulesPlugins(options, loaderContext) {
778778
localByDefault({ mode }),
779779
extractImports(),
780780
modulesScope({
781-
generateScopedName(exportName) {
781+
generateScopedName(exportName, resourceFile, rawCss, node) {
782782
let localIdent;
783783

784784
if (typeof getLocalIdent !== "undefined") {
@@ -794,6 +794,7 @@ function getModulesPlugins(options, loaderContext) {
794794
hashDigestLength: localIdentHashDigestLength,
795795
hashStrategy,
796796
regExp: localIdentRegExp,
797+
node,
797798
}
798799
);
799800
}
@@ -813,6 +814,7 @@ function getModulesPlugins(options, loaderContext) {
813814
hashDigestLength: localIdentHashDigestLength,
814815
hashStrategy,
815816
regExp: localIdentRegExp,
817+
node,
816818
}
817819
);
818820

0 commit comments

Comments
 (0)