Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-angular-externals

mattlewis922.2kMIT1.0.2

A tiny utility to prevent webpack bundling @angular dependencies in your library code

webpack, angular, externals, library

readme

webpack-angular-externals

Build Status codecov

A tiny utility to prevent webpack bundling @angular dependencies in your library code

Installation

npm install webpack-angular-externals --save-dev

Usage

// webpack.config.js
const webpackAngularExternals = require('webpack-angular-externals');

module.exports = {
  // rest of config here
  externals: [
    webpackAngularExternals(),
    {
      'another-external-lib': {
        root: ['anotherExternalLib'],
        commonjs: 'another-external-lib',
        commonjs2: 'another-external-lib',
        amd: 'another-external-lib'
      }
    }
  ]
};

License

MIT