From 3cd1340baea8cf0a91d056051b43d4d9c1d0fbe4 Mon Sep 17 00:00:00 2001 From: Rasmus Eneman Date: Fri, 31 Aug 2018 20:09:25 +0200 Subject: [PATCH] Import lodash/flowRight using ES import to allow for treeshaking See issue https://github.com/apollographql/react-apollo/issues/2306 --- src/browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser.ts b/src/browser.ts index 48a268fbb8..13fbaca8e7 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -24,5 +24,5 @@ export * from './withApollo' export * from './types'; // XXX remove in the next breaking semver change (3.0) -const compose = require('lodash/flowRight'); +import * as compose from 'lodash/flowRight'; export { compose };