webpack-date-fns-externals

1.0.2 • Public • Published

webpack-date-fns-externals

Build Status codecov

A tiny utility to prevent webpack bundling date-fns imports in your library code

Installation

npm install webpack-date-fns-externals --save-dev

Usage

// webpack.config.js
const webpackDateFnsExternals = require('webpack-date-fns-externals');
 
module.exports = {
  // rest of config here
  externals: [
    webpackDateFnsExternals(),
    {
      'another-external-lib': {
        root: ['anotherExternalLib'],
        commonjs: 'another-external-lib',
        commonjs2: 'another-external-lib',
        amd: 'another-external-lib'
      }
    }
  ]
};

License

MIT

Package Sidebar

Install

npm i webpack-date-fns-externals

Weekly Downloads

11

Version

1.0.2

License

MIT

Last publish

Collaborators

  • mattlewis92