mirror of
https://github.com/status-im/metro.git
synced 2025-02-04 23:33:33 +00:00
David Aurelio
c157c9a1f3
Use
require.resolve
rather than path.resolve(__dirname, ...)
to find files
Summary: Here, we change the mechanism of finding files from `path.resolve(__dirname, ...)` to `require.resolve(...)`. The latter depends on the location of one file rather than two, and is usually more readable and intention revealing. Reviewed By: cpojer Differential Revision: D7858479 fbshipit-source-id: 98373cc0860faa791e60d5f11502d762fd22a409
Metro
🚇 The JavaScript bundler for React Native.
- 🚅 Fast: We aim for sub-second reload cycles, fast startup and quick bundling speeds.
- ⚖️ Scalable: Works with thousands of modules in a single application.
- ⚛️ Integrated: Supports every React Native project out of the box.
This project was previously part of the react-native repository. In this smaller repository it is easier for the team working on Metro Bundler to respond to both issues and pull requests. See react-native#13976 for the initial announcement.
Installation & Documentation
See the Metro website for documentation.
Description
Languages
JavaScript
100%