Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added bundler property to babel caller (#558)
Summary: **Summary** `name` is set to `babel-loader` in Webpack but certain tools use custom babel loaders which makes the `name` field an unpredictable property for detecting what bundler is being used. Adding a bundler property to every loader will help make this more distinguishable. Expo currently does this in the `expo/webpack-config` ([here](https://github.com/expo/expo-cli/blob/098b38a37a4271c8401a20e4a65340b01485adf2/packages/webpack-config/src/loaders/createBabelLoader.ts#L206-L207)) as a way of configuring the babel preset to tree-shake unused `react-native-web` code. We'd like to move away from using `babel-loader` in favor of using this new `bundler` property so more free form configurations like "Metro + react-native-web" can be easily configurable expo/expo#8170 Pull Request resolved: #558 Reviewed By: motiz88 Differential Revision: D21593374 Pulled By: cpojer fbshipit-source-id: 287aafcfea70d7fe61d69e3a202b7f05eac1699d
- Loading branch information