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
var__webpack_exports__={};if(true){consthasConsole=(/* unused pure expression or super */null&&(typeofconsole!=='undefined'));constwarn=(msg)=>{if(hasConsole){console.warn(msg)}}warn()}
Reproduce link
No response
Reproduce Steps
The text was updated successfully, but these errors were encountered:
This is related to us not aligning InnerGraphPlugin with webpack. typeof console is regarded as of side effect in webpack, whereas rspack is not and regarded this case as side effect free. PureExpression is generated based on that.
System Info
Details
Another problem related to #7012
This problem is included in rspack
0.6.0
-1.0.0.alpha.0
andnewTreeshaking
-enabled prior-0.6.0 as well.Case
js
rspack.config.js
Expected
Webpack output as well.
Got
Reproduce link
No response
Reproduce Steps
The text was updated successfully, but these errors were encountered: