Page MenuHomePhabricator

[web] Update to react-switch@7.0.0
ClosedPublic

Authored by ashoat on Feb 13 2023, 5:25 AM.
Tags
None
Referenced Files
F3486326: D6711.id22412.diff
Wed, Dec 18, 4:30 AM
F3485748: D6711.diff
Wed, Dec 18, 12:54 AM
Unknown Object (File)
Wed, Dec 11, 7:32 PM
Unknown Object (File)
Thu, Dec 5, 6:11 AM
Unknown Object (File)
Tue, Nov 26, 4:29 PM
Unknown Object (File)
Nov 12 2024, 12:19 PM
Unknown Object (File)
Nov 10 2024, 5:03 AM
Unknown Object (File)
Oct 29 2024, 2:47 AM
Subscribers
None

Details

Summary

This fixes ENG-2987, which broke calendar filters on prod.

What happened is similar to D6704. Basically the old version of react-switch was packaged as CommonJS, but exported an object with an __esModule property. When imported from an ESM context, Webpack 4 would handle this as a special case and allow access to the default export as if it was an ESM export, but Webpack 5 removed that "special case" logic.

Test Plan
  1. Confirm calendar filters open on web again by testing web build in dev mode
  2. Review react-switch's CHANGELOG file and confirm there are no breaking changes that affect us

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/filters
Lint
No Lint Coverage
Unit
No Test Coverage