mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
Latest versions of `url-loader` default `esModule: true` which outputs a module object with `default` property for asset imports. This behaviour is different from Metro which doesn't do that. This breaks compatibility with a lot of React Native libraries since it's common to do an inline `require` for assets., so it'd work for Metro, but break with url-loader. Close #2040