Miron Machnicki
1 min readSep 6, 2016

--

Nice thx! It’s also good to remember to not import whole library when it’s not needed. Webpack 1X doesn’t support native ES modules, so sometimes better to write

import Something from 'myLibrary/lib/something'

than

import { Something } from 'myLibrary'

to avoid adding whole library into bundle.

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

No responses yet

Write a response