You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: adjust bundling to not produce duplicate inlined internal modules (#2774)
* chore: add some validation to bundling to ensure we don't produce duplicate/inling of regional-blob-store module in unexptected built modules
* chore: don't hardcode repo directory in build script
* test: adjust assertion for case where multiple cache-status values are being comma separated and not line separated
* Update tools/build.js
Co-authored-by: Eduardo Bouças <[email protected]>
---------
Co-authored-by: Eduardo Bouças <[email protected]>
// "Netlify Durable" assertion is skipped because we are asserting index page and there are possible that something else is making similar request to it
18
18
// and as a result we can see many possible statuses for it: `fwd=miss`, `fwd=miss; stored`, `hit; ttl=<ttl>` so there is no point in asserting on that
19
19
// "Netlify Edge" status suffers from similar issue, but is less likely to manifest (only if those requests would be handled by same CDN node) and retries
'Expected to find "fetchBeforeNextPatchedIt" variable in "run/regional-blob-store.cjs", but it was not found. This might indicate a setup change that requires the bundling validation in "tools/build.js" to be adjusted.',
`Bundling produced unexpected duplicates of "regional-blob-store" module in following built modules:\n${unexpectedModulesContainingFetchBeforeNextPatchedIt.map((filePath)=>` - ${filePath}`).join('\n')}`,
156
+
)
157
+
}
158
+
}
159
+
129
160
if(watch){
130
161
console.log('Starting compilation in watch mode...')
0 commit comments