From 76846f7e339d20d3efafadbb808f87012ed4b92c Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 25 Sep 2015 19:22:21 -0700 Subject: [PATCH] Remove all the duplicate module warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- packager/blacklist.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packager/blacklist.js b/packager/blacklist.js index 741b7c1ff..ce5246353 100644 --- a/packager/blacklist.js +++ b/packager/blacklist.js @@ -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