lodash-modularize icon indicating copy to clipboard operation
lodash-modularize copied to clipboard

Support variable thrashing

Open megawac opened this issue 9 years ago • 1 comments

Support converting

var lodash = require('lodash');

lodash.map(x, y);

// ====>
var _map = require('lodash/collections/map');

_map(x, y);

Could be useful for a babel or browserify transform

megawac avatar Jul 24 '15 15:07 megawac

Probably makes sense to do this as a babel transform looking at some other babel transforms

megawac avatar Jul 25 '15 19:07 megawac