Miron Machnicki
1 min readDec 6, 2016

--

Webpack 1 doesn’t support native ES import very well, that’s why you have imported whole library.

Webpack 2 should fix it we tree shaking mechanism.

In meantime you don’t need to find another libary.

Instead of import { debounce } from 'lodash'you can write import debounce from 'lodash/debounce'

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Miron Machnicki
Miron Machnicki

Written by Miron Machnicki

Full-stack developer - react.js, node.js, serverless. @machnicki

Responses (1)

Write a response