This is a quick extension that allows you to replace your lodash imports quickly and easily using indvidual module importing. This is ideal for existing projects that use lodash frequently but need to reduce bundle size.
For example this plugin will change the following code
import _ from 'lodash';
lodash.filter(array1, (x) => x.isEnabled);
lodash.orderBy(array1, (x) => x.Name);To
import filter from 'lodash/filter';
import orderBy from 'lodash/orderBy';
filter(array1, (x) => x.isEnabled);
orderBy(array1, (x) => x.Name);- Reduce bundle size with a single action
- Run when you need to.
- Handles any name
- Auto Save
- Supports ES6 syntax
- Supports
import module fromsyntax from ES6
- Supports
- Does not support require syntax (
const _ = require('lodash')) - Does not support curly brace import (
import {filter} from lodash) - Adds new line in sometimes inappropriate places wherever
importstatements are
For support please open an issue or pull request on github
Enjoy!




