Skip to content

Commit 4c5d868

Browse files
fix: classes generation for client and server bundling
1 parent c7db752 commit 4c5d868

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/utils.js

+2-12
Original file line numberDiff line numberDiff line change
@@ -317,25 +317,15 @@ function defaultGetLocalIdent(
317317
localName,
318318
options
319319
) {
320-
let relativeMatchResource = "";
321-
322-
const { context, hashSalt } = options;
320+
const { context } = options;
323321
const { resourcePath } = loaderContext;
324322

325-
// eslint-disable-next-line no-underscore-dangle
326-
if (loaderContext._module && loaderContext._module.matchResource) {
327-
relativeMatchResource = `${normalizePath(
328-
// eslint-disable-next-line no-underscore-dangle
329-
path.relative(context, loaderContext._module.matchResource)
330-
)}\x00`;
331-
}
332-
333323
const relativeResourcePath = normalizePath(
334324
path.relative(context, resourcePath)
335325
);
336326

337327
// eslint-disable-next-line no-param-reassign
338-
options.content = `${relativeMatchResource}${relativeResourcePath}\x00${localName}`;
328+
options.content = `${relativeResourcePath}\x00${localName}`;
339329

340330
let { hashFunction, hashDigest, hashDigestLength } = options;
341331
const matches = localIdentName.match(

0 commit comments

Comments
 (0)