Skip to content
Merged

Fix CI #33639

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export async function optimizeChunks(
minify: { mangle: false, compress: false },
sourcemap,
chunkFileNames: (chunkInfo) =>
`${chunkInfo.name.replace(/-[a-zA-Z0-9]{8}$/, '')}-[hash].js`,
`${chunkInfo.name.replace(/-[a-zA-Z0-9_-]{8}$/, '')}-[hash].js`,
});
optimizedOutput = result.output;
} else {
Expand All @@ -324,7 +324,7 @@ export async function optimizeChunks(
compact: true,
sourcemap,
chunkFileNames: (chunkInfo) =>
`${chunkInfo.name.replace(/-[a-zA-Z0-9]{8}$/, '')}-[hash].js`,
`${chunkInfo.name.replace(/-[a-zA-Z0-9_-]{8}$/, '')}-[hash].js`,
});
optimizedOutput = result.output;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,36 +137,36 @@ const RESPONSE_EXPECTS: Record<
}
> = {
'/': {
matches: [/<link rel="modulepreload" href="(home-[a-zA-Z0-9_]{8}\.js)">/],
matches: [/<link rel="modulepreload" href="(home-[a-zA-Z0-9_-]{8}\.js)">/],
notMatches: [/ssg\-component/, /ssr/, /csr/, /cross-dep-/],
},
'/ssg': {
matches: [
/<link rel="modulepreload" href="(ssg\.routes-[a-zA-Z0-9_]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg-component-[a-zA-Z0-9_]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg\.routes-[a-zA-Z0-9_-]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg-component-[a-zA-Z0-9_-]{8}\.js)">/,
],
notMatches: [/home/, /ssr/, /csr/, /ssg-one/, /ssg-two/, /cross-dep-/],
},
'/ssg/one': {
matches: [
/<link rel="modulepreload" href="(ssg\.routes-[a-zA-Z0-9_]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg-one-[a-zA-Z0-9_]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg\.routes-[a-zA-Z0-9_-]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg-one-[a-zA-Z0-9_-]{8}\.js)">/,
],
notMatches: [/home/, /ssr/, /csr/, /ssg-two/, /ssg\-component/, /cross-dep-/],
},
'/ssg/two': {
matches: [
/<link rel="modulepreload" href="(ssg\.routes-[a-zA-Z0-9_]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg-two-[a-zA-Z0-9_]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg\.routes-[a-zA-Z0-9_-]{8}\.js)">/,
/<link rel="modulepreload" href="(ssg-two-[a-zA-Z0-9_-]{8}\.js)">/,
],
notMatches: [/home/, /ssr/, /csr/, /ssg-one/, /ssg\-component/, /cross-dep-/],
},
'/ssr': {
matches: [/<link rel="modulepreload" href="(ssr-[a-zA-Z0-9_]{8}\.js)">/],
matches: [/<link rel="modulepreload" href="(ssr-[a-zA-Z0-9_-]{8}\.js)">/],
notMatches: [/home/, /ssg\-component/, /csr/],
},
'/csr': {
matches: [/<link rel="modulepreload" href="(csr-[a-zA-Z0-9_]{8}\.js)">/],
matches: [/<link rel="modulepreload" href="(csr-[a-zA-Z0-9_-]{8}\.js)">/],
notMatches: [/home/, /ssg\-component/, /ssr/, /cross-dep-/],
},
};
Expand Down
Loading