lodash / babel-plugin-lodash

Modular Lodash builds without the hassle.
Other
1.96k stars 92 forks source link

Reverse functionality #163

Closed teod closed 7 years ago

teod commented 7 years ago

I know it's weird, but I actually require in the project I'm working on the exact opposite functionality, I'm importing my lodash modules like:

import compose from 'lodash/fp/compose'
import debounce from 'lodash/debounce

And I want to have an output like:

import { compose } from 'lodash/fp'
import { debounce } from 'lodash' 

I want to improve the incremental build time during the development process using webpack DLL plugin, and unfortunately webpack keeps adding the lodash module into the bundle if I'm cherry picking lodash functions myself.

jdalton commented 7 years ago

This seems like a webpack support question. Have you tried asking on the webpack slack channel?