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
A tiny utility to prevent webpack bundling date-fns imports in your library code
Installation
npm install webpack-date-fns-externals --save-devUsage
// 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