Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Import lodash/flowRight using ES import to allow for treeshaking #2332

Merged
merged 2 commits into from
Sep 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ export * from './withApollo'
export * from './types';

// XXX remove in the next breaking semver change (3.0)
const compose = require('lodash/flowRight');
export { compose };
export { default as compose } from 'lodash/flowRight';
5 changes: 5 additions & 0 deletions typings/lodash_flow-right.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'lodash/flowRight' {
import { flowRight } from 'lodash';

export default flowRight;
}