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.