|
11 | 11 | ; Ignore "BUCK" generated dirs
|
12 | 12 | <PROJECT_ROOT>/\.buckd/
|
13 | 13 |
|
14 |
| -; Ignore unexpected extra "@providesModule" |
15 |
| -.*/node_modules/.*/node_modules/fbjs/.* |
16 |
| - |
17 |
| -; Ignore duplicate module providers |
18 |
| -; For RN Apps installed via npm, "Libraries" folder is inside |
19 |
| -; "node_modules/react-native" but in the source repo it is in the root |
20 |
| -.*/Libraries/react-native/React.js |
21 |
| - |
22 | 14 | ; Ignore polyfills
|
23 | 15 | .*/Libraries/polyfills/.*
|
24 | 16 |
|
@@ -48,28 +40,11 @@ module.file_ext=.js
|
48 | 40 | module.file_ext=.json
|
49 | 41 | module.file_ext=.android.js
|
50 | 42 |
|
51 |
| -module.system=haste |
52 |
| -module.system.haste.use_name_reducers=true |
53 |
| -# keep the following in sync with server/haste/hasteImpl.js |
54 |
| -# get basename |
55 |
| -module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' |
56 |
| -# strip .js or .js.flow suffix |
57 |
| -module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' |
58 |
| -# strip .android suffix |
59 |
| -module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' |
60 |
| -module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' |
61 |
| -module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' |
62 |
| -module.system.haste.paths.blacklist=.*/__tests__/.* |
63 |
| -module.system.haste.paths.blacklist=.*/__mocks__/.* |
64 |
| -module.system.haste.paths.whitelist=<PROJECT_ROOT>/Libraries/.* |
65 |
| -module.system.haste.paths.whitelist=<PROJECT_ROOT>/RNTester/.* |
66 |
| -module.system.haste.paths.whitelist=<PROJECT_ROOT>/IntegrationTests/.* |
67 |
| -module.system.haste.paths.blacklist=<PROJECT_ROOT>/Libraries/react-native/react-native-implementation.js |
68 |
| -module.system.haste.paths.blacklist=<PROJECT_ROOT>/Libraries/Animated/src/polyfills/.* |
69 |
| - |
70 | 43 | munge_underscores=true
|
71 | 44 |
|
72 |
| -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\|pdf\)$' -> 'RelativeImageStub' |
| 45 | +module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/Libraries/react-native/react-native-implementation' |
| 46 | +module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1' |
| 47 | +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\|pdf\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub' |
73 | 48 |
|
74 | 49 | suppress_type=$FlowIssue
|
75 | 50 | suppress_type=$FlowFixMe
|
|
0 commit comments