We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f69b5 commit c80e3feCopy full SHA for c80e3fe
packages/react-dev-utils/getCSSModuleLocalIdent.js
@@ -8,6 +8,7 @@
8
'use strict';
9
10
const loaderUtils = require('loader-utils');
11
+const path = require('path');
12
13
module.exports = function getLocalIdent(
14
context,
@@ -23,7 +24,7 @@ module.exports = function getLocalIdent(
23
24
: '[name]';
25
// Create a hash based on a the file location and class name. Will be unique across a project, and close to globally unique.
26
const hash = loaderUtils.getHashDigest(
- context.resourcePath + localName,
27
+ path.posix.relative(context.rootContext, context.resourcePath) + localName,
28
'md5',
29
'base64',
30
5
0 commit comments