Skip to content

Commit 5103e31

Browse files
committed
fix
1 parent b0c3c62 commit 5103e31

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

e2e/cases/css/css-modules-composes/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rspackTest(
2424
},
2525
});
2626
const files = rsbuild.getDistFiles();
27-
const content = getFileContent(files, 'index.css');
27+
const content = getFileContent(files, 'external.css');
2828
expect(content).toMatch(
2929
/.*\{color:#000;background:#0ff\}.*\{background:green\}/,
3030
);

e2e/cases/polyfill/core-js-basic/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ test('should add polyfill when set polyfill entry (default)', async ({
2727
expect(await page.evaluate('window.a')).toEqual(EXPECT_VALUE);
2828

2929
const files = rsbuild.getDistFiles({ sourceMaps: true });
30-
3130
const content = getPolyfillContent(files);
3231

3332
// should polyfill all api

e2e/helper/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export type FindFileOptions = {
268268
ignoreHash?: boolean;
269269
};
270270

271-
const HASH_PATTERN = /(\.|-)[0-9a-z]{6,}(?=\.)/gi;
271+
const HASH_PATTERN = /\.[0-9a-z]{6,}(?=\.)/gi;
272272

273273
const toMatcherFn = (matcher: FileMatcher): ((file: string) => boolean) => {
274274
if (typeof matcher === 'function') {

0 commit comments

Comments
 (0)