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
[dev-overlay] ensure stripping overlay bundle in prod build (#76976)
### What
While adding a regression test for overlay JS bundle to ensure it's not
gonna existed in client bundles by asserting the source map.
Found that we're also including the indicator reducer from client JS
bundles. This PR ensure we fully strips it out
`Found the following server modules:\n ${serverSources.join('\n ')}\nIf any of these modules are allowed to be included in browser chunks, move them to src/shared or src/client.`
`Found the following server modules:\n ${serverSources.join('\n ')}\nIf any of these modules are allowed to be included in browser chunks, move them to src/shared or src/client.`
33
-
)
48
+
if(devOverlaySources.length>0){
49
+
constmessage=`Found the following dev overlay modules:\n ${devOverlaySources.join('\n')}`
50
+
console.error(
51
+
`${message}\nIf any of these modules are allowed to be included in production chunks, check the import and render conditions.`
52
+
)
34
53
35
-
thrownewError('Did not expect any server modules in browser chunks.')
36
-
}
54
+
thrownewError(
55
+
'Did not expect any dev overlay modules in browser chunks.\n'+message
0 commit comments