SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

Fix remaining CommonJS imports after Rollup upgrade (#26473)

Follow-up to https://github.com/facebook/react/pull/26442.

It looks like we missed a few cases where we default import a CommonJS
module, which leads to Rollup adding `.default` access, e.g.
`require('webpack/lib/Template').default` in the output.

To fix, add the remaining cases to the list of exceptions. Verified by
going through all `externals` in the bundle list, and manually checking
the webpack plugin.
D
dan committed
175962c10c53e5adfcfc02a3d6cc3f487d5a78a0
Parent: 3fcf209
Committed by GitHub <noreply@github.com> on 3/25/2023, 12:05:23 AM