typescript-plugin-lodash
A simple typescript transform to cherry-pick Lodash modules so you don’t have to.
Example
Transforms
;; ;map, addOne;
roughly to
;; ;map, addOne;
Usage
like https://github.com/Igorbek/typescript-plugin-styled-components
// 1. import default from the plugin module; // 2. add getCustomTransformer method to the loader config;
Notice
- No supports for
* as _
lodash-es
will be force transformed tolodash
alias
in Webpack
please use { "lodash-es": "lodash" }
to replace lodash-es
to lodash
for smaller bundle size.