2015-02-20 04:10:52 +00:00
|
|
|
[ignore]
|
|
|
|
|
|
|
|
# We fork some components by platform.
|
|
|
|
.*/*.web.js
|
|
|
|
.*/*.android.js
|
|
|
|
|
|
|
|
# Some modules have their own node_modules with overlap
|
|
|
|
.*/node_modules/node-haste/.*
|
|
|
|
|
2015-11-10 21:15:00 +00:00
|
|
|
# Ugh
|
|
|
|
.*/node_modules/babel.*
|
|
|
|
.*/node_modules/babylon.*
|
|
|
|
.*/node_modules/invariant.*
|
|
|
|
|
2015-11-07 03:50:10 +00:00
|
|
|
# Ignore react and fbjs where there are overlaps, but don't ignore
|
|
|
|
# anything that react-native relies on
|
2015-12-30 19:38:44 +00:00
|
|
|
.*/node_modules/fbjs/lib/fetch.js
|
|
|
|
.*/node_modules/fbjs/lib/ExecutionEnvironment.js
|
|
|
|
.*/node_modules/fbjs/lib/ErrorUtils.js
|
|
|
|
|
|
|
|
# Flow has a built-in definition for the 'react' module which we prefer to use
|
|
|
|
# over the currently-untyped source
|
|
|
|
.*/node_modules/react/react.js
|
|
|
|
.*/node_modules/react/lib/React.js
|
|
|
|
.*/node_modules/react/lib/ReactDOM.js
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-05-08 18:04:22 +00:00
|
|
|
# Ignore commoner tests
|
2015-05-28 00:25:19 +00:00
|
|
|
.*/node_modules/commoner/test/.*
|
2015-05-08 18:04:22 +00:00
|
|
|
|
|
|
|
# See https://github.com/facebook/flow/issues/442
|
|
|
|
.*/react-tools/node_modules/commoner/lib/reader.js
|
|
|
|
|
2015-02-20 04:10:52 +00:00
|
|
|
# Ignore jest
|
2015-05-28 04:17:14 +00:00
|
|
|
.*/node_modules/jest-cli/.*
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-03-28 05:18:47 +00:00
|
|
|
# Ignore Website
|
|
|
|
.*/website/.*
|
|
|
|
|
2015-02-20 04:10:52 +00:00
|
|
|
[include]
|
|
|
|
|
|
|
|
[libs]
|
|
|
|
Libraries/react-native/react-native-interface.js
|
|
|
|
|
|
|
|
[options]
|
|
|
|
module.system=haste
|
2015-04-25 05:43:01 +00:00
|
|
|
|
2015-07-30 03:19:40 +00:00
|
|
|
munge_underscores=true
|
|
|
|
|
2015-08-27 01:30:46 +00:00
|
|
|
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
|
Support non-image assets in packager
Summary:
public
The packager currently assumes that all assets that are not JSON or JS files must be images. Although it is possible to add other extension types, they crash the packager if you try to require them, because it attempts to get their dimensions, assuming that they are an image.
This is a crude workaround for that problem, which skips the image-specific processing for non-image assets, but really it would be better if the packager was properly aware of different asset types and treated them differently (e.g. for sounds it could include the duration, for HTML pages it could parse and include linked CSS files, etc).
I've also added an example of using `require('...')` to load a packager-managed HTML page in the UIExplorer WebView example. In future I anticipate that all static asset types (sounds, fonts, etc.) could be handled in this way, which allows them to be edited or added/removed on the fly instead of needing to restart the app.
Reviewed By: martinbigio
Differential Revision: D2895619
fb-gh-sync-id: cd93794ca66bad838621cd7df3ff3c62b5645e85
2016-02-04 01:30:01 +00:00
|
|
|
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\)$' -> 'RelativeImageStub'
|
2015-08-27 01:30:46 +00:00
|
|
|
|
2015-06-11 22:35:26 +00:00
|
|
|
suppress_type=$FlowIssue
|
|
|
|
suppress_type=$FlowFixMe
|
|
|
|
suppress_type=$FixMe
|
|
|
|
|
2016-02-02 01:13:08 +00:00
|
|
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-1]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
|
|
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-1]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
2015-06-22 16:43:30 +00:00
|
|
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
2015-06-11 22:35:26 +00:00
|
|
|
|
2015-04-25 05:43:01 +00:00
|
|
|
[version]
|
2016-02-02 01:13:08 +00:00
|
|
|
0.21.0
|