Jean Lauliac 2482fa8956 packager: ResolutionRequest: unify asset resolution
Summary:
The existing resolution logic of assets:

* goes over all the files of the asset's directory for every resolution request;
* duplicates the parsing logic of `AssetPaths` by building up a custom regex for each resolution request.

This changeset proposes to tweak this by building an index for each particular directory in which we're looking for assets, so that we don't have to crawl a single directory twice, and so that it reuses the logic of `AssetPaths.tryParse()` for determining variants.

Reviewed By: davidaurelio

Differential Revision: D5062435

fbshipit-source-id: 708fc5612f57b14565499fad741701269438c806
2017-05-16 09:05:58 -07:00
2017-01-26 12:56:40 +00:00
2017-01-26 12:56:40 +00:00
2017-04-11 19:19:25 +01:00
2017-04-11 18:14:32 +01:00
2017-01-26 12:56:40 +00:00
2017-02-28 11:45:45 +00:00
2017-04-11 18:22:31 +01:00
2017-03-01 11:01:35 +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-01-26 12:56:40 +00:00
2017-01-26 12:56:40 +00:00
2017-03-01 11:01:35 +00:00
2017-01-26 12:56:40 +00:00
2017-04-11 19:19:25 +01:00
2017-01-26 12:56:40 +00:00
2017-01-26 12:56:40 +00:00
2017-04-11 19:19:25 +01:00

metro-bundler Build Status Windows Build Status npm version

The JavaScript bundler for React Native

Description
🚇 The JavaScript bundler for React Native.
https://facebook.github.io/metro
Readme MIT
Languages
JavaScript 100%