@marioa/import-lodash-loader
v1.0.1
Published
Import lodash automatically of specific methods one by one
Downloads
3
Readme
import-lodash-loader
Import lodash automatically of specific methods one by one
Installation
$ yarn add @marioa/import-lodash-loader --dev
Use
// webpack config set
module: {
rules: [
{
test: /\.(ts|tsx)$/,
exclude: /node-modules/,
use: [
'babel-loader',
'@marioa/import-lodash-loader',
],
}
],
},
// ts declaration file
import * as _lodash from 'lodash';
declare global {
declare const _: _lodash;
}