JSPM

webpack-date-fns-externals

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q47277F
  • License MIT

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

Package Exports

  • webpack-date-fns-externals

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webpack-date-fns-externals) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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