🚇 The JavaScript bundler for React Native. https://facebook.github.io/metro
Go to file
Jean Lauliac 635e41027c metro-bundler: put __tests__ blacklisting into default blacklist instead
Summary: I'd like to get rid of the function as blacklist, because it's impossible to process properly at the `jest-haste-map` level (https://github.com/facebook/jest/pull/4047). The reason we use a function in Metro bundler is because we excludes all the `__tests__` modules. However, I removed this exclusion completely, and I could build our package without any problem and with no difference in the final bundle. I can only assume, then, that this line is only here for slightly increasing performance. Therefore, I think it's reasonnable to move it as part of the default blacklist shipped with Metro bundler instead.

Reviewed By: cpojer

Differential Revision: D5434351

fbshipit-source-id: dea39f6299985143d25fcb3b7b365d793acd64a9
2017-07-17 11:24:06 -07:00
.github Initial repository structure. 2017-01-26 12:56:40 +00:00
flow-typed Backed out changeset db8638eebe2d 2017-06-14 09:53:06 -07:00
packages/metro-bundler metro-bundler: put __tests__ blacklisting into default blacklist instead 2017-07-17 11:24:06 -07:00
scripts fix support for node v4 2017-06-26 05:08:50 -07:00
.babelrc fix support for node v4 2017-06-26 05:08:50 -07:00
.eslintignore Initial repository structure. 2017-01-26 12:56:40 +00:00
.eslintrc Add prettier to metro-bundler, fixing code styling issues 2017-06-12 01:20:50 -07:00
.flowconfig Don’t ignore `/build/` in `node_modules` 2017-06-09 09:56:52 -07:00
.gitignore Add nested yarn.lock 2017-06-12 18:07:19 +01:00
.npmignore Initial repository structure. 2017-01-26 12:56:40 +00:00
.travis.yml Initial repository structure. 2017-01-26 12:56:40 +00:00
CHANGELOG.md Initial repository structure. 2017-01-26 12:56:40 +00:00
CONTRIBUTING.md Initial repository structure. 2017-01-26 12:56:40 +00:00
LICENSE Initial repository structure. 2017-01-26 12:56:40 +00:00
PATENTS Initial repository structure. 2017-01-26 12:56:40 +00:00
README.md Update README 2017-06-06 03:29:08 -07:00
appveyor.yml Initial repository structure. 2017-01-26 12:56:40 +00:00
circle.yml Add circle.yml 2017-06-06 08:41:04 -07:00
lerna.json Publish v0.9.0 2017-06-23 13:07:43 -07:00
package.json metro-bundler: upgrade jest to 20.1 2017-07-14 08:11:09 -07:00
yarn.lock metro-bundler: upgrade jest to 20.1 2017-07-14 08:11:09 -07:00

README.md

metro-bundler

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.