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 4645c7b commit b1da2daCopy full SHA for b1da2da
cypress/size-check.spec.js
@@ -249,7 +249,12 @@ async function isReactChunk(resourceName) {
249
const response = await fetch(`${resourceName}.LICENSE.txt`);
250
if (response.ok) {
251
const license = await response.text();
252
- if (license.includes("@license React")) {
+ if (
253
+ license.includes("@license React") &&
254
+ /(?:react(?:-dom(?:-client)?)?|scheduler)\.production(?:\.min)?\.js/.test(
255
+ license
256
+ )
257
+ ) {
258
return true;
259
}
260
0 commit comments