Skip to content

Commit b1da2da

Browse files
committed
chore(): fix identify react chunk
1 parent 4645c7b commit b1da2da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cypress/size-check.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,12 @@ async function isReactChunk(resourceName) {
249249
const response = await fetch(`${resourceName}.LICENSE.txt`);
250250
if (response.ok) {
251251
const license = await response.text();
252-
if (license.includes("@license React")) {
252+
if (
253+
license.includes("@license React") &&
254+
/(?:react(?:-dom(?:-client)?)?|scheduler)\.production(?:\.min)?\.js/.test(
255+
license
256+
)
257+
) {
253258
return true;
254259
}
255260
}

0 commit comments

Comments
 (0)