DEV Community

Do not use destructuring on import

Johan Melin on December 31, 2021

When importing it is common to use destructuring, but it seems to have its drawbacks. By not using destructuring I got a bundled JavaScript file do...
Collapse
 
rendall profile image
rendall

Webpack supports the ES6 style imports. What happens if you do
import { camelCase } from 'lodash'?

Collapse
 
theproductivecoder profile image
Johan Melin

I got the same results, I have updated the article to reflect that.