2.2.0 • Published 3 years ago
@cisco-msx/webpack-externals v2.2.0
@cisco-msx/webpack-externals
External module configuration for Webpack. Include in your Webpack configuration
to omit modules from a bundle which are provided by the MSX platform,
e.g. @angular/core, @angular/common, etc.
Usage
Install @cisco-msx/webpack-externals in your package's devDependencies
$ npm install --save-dev @cisco-msx/webpack-externalsImport and include its configuration in your Webpack configuration's externals
object.
// webpack.config.js
const msxExternals = require('@cisco-msx/webpack-externals');
module.exports = () => {
return {
externals: {
...msxExternals,
// Other externals for your bundle can go here
}
}
};Omitted Modules
By using this package you will omit the following modules from your bundle and instead pick them up from window references provided by the MSX platform UI.
angularjquerylodashmomentd3rxjsrxjs/operators@angular/core@angular/common@angular/common/http@angular/compiler@angular/platform-browser@angular/platform-browser-dynamic@angular/upgrade/static@angular/forms@uirouter/core@uirouter/angular@uirouter/angularjs@cisco-msx/root-injector@cisco-msx/http@cisco-msx/common@cisco-msx/devices@cisco-msx/forms@cisco-msx/forms/validators@cisco-msx/sites@cisco-msx/template-management