James Ide da2fdba240 Add back support for the assetPlugin option
Summary:
**Summary**
Metro used to have support for "asset plugins", which allowed developers to specify arbitrary JS modules that could export a function for adding more fields to asset data objects. Some of this functionality was removed in the delta bundler work -- this PR adds it back.

**Test plan**
Made existing unit tests pass and added unit tests to test asset plugin behavior. Also tested E2E in a React Native project by adding `assetPlugin=/path/to/pluginModule` to a JS bundle URL and ensuring that the plugin ran.
Closes https://github.com/facebook/metro/pull/118

Differential Revision: D6711094

Pulled By: rafeca

fbshipit-source-id: f42c54cfd11bac5103194f85083084eef25fa3cd
2018-01-12 06:01:43 -08:00
2017-11-30 11:56:25 +00:00
2018-01-05 13:42:53 -08:00
2017-11-30 11:56:25 +00:00
2017-06-26 05:08:50 -07:00
2017-01-26 12:56:40 +00:00
2017-11-30 11:56:25 +00:00
2017-01-26 12:56:40 +00:00
2017-01-26 12:56:40 +00:00
2017-01-26 12:56:40 +00:00
2017-11-30 11:56:25 +00:00
2017-11-22 02:58:16 -08:00
2017-11-30 11:56:25 +00:00
2017-12-20 19:31:01 -08:00
2017-11-30 11:56:25 +00:00
2018-01-10 08:58:23 -08:00
2017-11-30 11:56:25 +00:00
2018-01-08 03:38:32 -08:00
2018-01-10 08:58:23 -08:00

Metro

CircleCI Build Status npm version

🚇 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
🚇 The JavaScript bundler for React Native.
https://facebook.github.io/metro
Readme MIT
Languages
JavaScript 100%