From 83ace88897cea001cec1cc8a790ef5b13ab04133 Mon Sep 17 00:00:00 2001 From: Pablo Garcia Date: Mon, 23 Jul 2018 11:30:37 -0700 Subject: [PATCH] export individual modules to enable tree-shaking capabilities --- packages/react-is/index.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/packages/react-is/index.js b/packages/react-is/index.js index f8c9ffdcd287c..3eb960a7ae13f 100644 --- a/packages/react-is/index.js +++ b/packages/react-is/index.js @@ -9,4 +9,25 @@ 'use strict'; -export * from './src/ReactIs'; +export { + typeOf, + AsyncMode, + ContextConsumer, + ContextProvider, + Element, + ForwardRef, + Fragment, + Profiler, + Portal, + StrictMode, + isValidElementType, + isAsyncMode, + isContextConsumer, + isContextProvider, + isElement, + isForwardRef, + isFragment, + isProfiler, + isPortal, + isStrictMode, +} from './src/ReactIs';