Remove all the duplicate module warnings

Summary: @​public

@amasad added a warning when there are two @​providesModule with the same name. This removes all those warnings by blacklisting the internal version of those files. Once we get of the big react-tools/ hack, we'll be able to remove all those :)

Reviewed By: @amasad

Differential Revision: D2482521
This commit is contained in:
Christopher Chedeau 2015-09-25 19:22:21 -07:00 committed by facebook-github-bot-8
parent bd36e40258
commit 76846f7e33
1 changed files with 19 additions and 0 deletions

View File

@ -17,6 +17,25 @@ var sharedBlacklist = [
'node_modules/react-tools/src/renderers/shared/event/EventPropagators.js',
'node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js',
'node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironment.js',
// Those conflicts with the ones in react-tools/. We need to blacklist the
// internal version otherwise they won't work in open source.
'downstream/core/invariant.js',
'downstream/key-mirror/keyMirror.js',
'downstream/core/emptyFunction.js',
'downstream/core/emptyObject.js',
'downstream/key-mirror/keyOf.js',
'downstream/core/dom/isNode.js',
'downstream/core/TouchEventUtils.js',
'downstream/core/nativeRequestAnimationFrame.js',
'downstream/core/dom/containsNode.js',
'downstream/core/dom/isTextNode.js',
'downstream/functional/mapObject.js',
'downstream/core/camelize.js',
'downstream/core/hyphenate.js',
'downstream/core/createArrayFromMixed.js',
'downstream/core/toArray.js',
'downstream/core/dom/getActiveElement.js',
];
// Raw unescaped patterns in case you need to use wildcards