@marioa/import-lodash-loader

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @marioa/import-lodash-loader

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

2 kB

Total Files

4

Last publish

Collaborators

  • marioa