Skip to content

Commit

Permalink
feat: updated generateExportEntry to expose node details (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
koga73 authored Dec 26, 2023
1 parent 797042c commit 05002f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions 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 @@ -50,7 +50,7 @@
"postcss": "^8.4.31",
"postcss-modules-extract-imports": "^3.0.0",
"postcss-modules-local-by-default": "^4.0.3",
"postcss-modules-scope": "^3.0.0",
"postcss-modules-scope": "^3.1.0",
"postcss-modules-values": "^4.0.0",
"postcss-value-parser": "^4.2.0",
"semver": "^7.5.4"
Expand Down
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 05002f3

Please sign in to comment.