1.0.1 • Published 3 years ago

@marioa/import-lodash-loader v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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;
}