-
-
Notifications
You must be signed in to change notification settings - Fork 864
web: Bump webpack to 5.99.5 #20048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web: Bump webpack to 5.99.5 #20048
Conversation
Shall we maybe wait for the next release with webpack/webpack#19403 in it? |
It's already being cooked: https://github.com/webpack/webpack/actions/runs/14336658120 |
And it's out: https://www.npmjs.com/package/webpack/v/5.99.3 |
And it's at 5.99.5 now... 👀 |
a16697a
to
d060e8f
Compare
I took the liberty to amend this commit and the PR to update to webpack 5.99.5 - I hope you don't mind. |
I suspect #20045 is related. I finally found a new issue that started April 8th. It affects the extension on all Chrome versions (you can see as an error by installing it via zip in Chrome). It ties to this code: ruffle/web/packages/extension/src/background.ts Lines 57 to 59 in 5aa7f02
Prior to April 8th, that line in background.js became this: await declarativeNetRequest.updateDynamicRules({
removeRuleIds: [ruleId],
}); As of the latest build, it's this: await utils.declarativeNetRequest.updateDynamicRules({
removeRuleIds: [ruleId],
}); There is an error "Uncaught (in promise) ReferenceError: utils is not defined" The webpack issue, webpack/webpack#19394, is titled "Regression on v5.99.0, [something] not defined". The imports in the Despite the ReferenceError occurring on all Chrome versions, it likely causes issues on specifically Chrome 121 - Chrome 127, the versions where the responseHeaders RuleCondition was recognized but not applied: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/HeaderInfo. |
After all, if this rule is added but not removed on a browser that recognizes a responseHeaders RuleCondition but does not apply it, what happens (rhetorical)? Answer: Every resource is blocked: ruffle/web/packages/extension/src/background.ts Lines 37 to 50 in 5aa7f02
|
I don't immediately see the connection between this rule, and the webpack issue that got fixed, but it's okay, I believe you! |
Part of the webpack issue was not doing replacements that should be done for imports. It's the fact that in the |
Ah, okay, alright, thanks! It makes sense now. |
5.99.0 has regressions: webpack/webpack#19394
Unsure if it's causing issues for us, but figured an upgrade cannot hurt. Perhaps relates to #20045, but no actual idea nor any idea how to test that.