text: const path = require('path');
  
  module.exports = {
    entry: './src/index.ts',
    output: {
      path: path.join(__dirname, 'dist', 'umd'),
      filename: './lib-module.js',
      libraryTarget: 'umd',
      library: 'libModule'
    },
    externals: {
      '@angular/core': {
        root: ['ng', 'core'],
        commonjs: '@angular/core',
        commonjs2: '@angular/core',
        amd: '@angular/core'
      },
      '@angular/common': {
        root: ['ng', 'common'],
        commonjs: '@angular/common',
        commonjs2: '@angular/common',
        amd: '@angular/common'
      }
    },
    devtool: 'source-map',
    module: {
      preLoaders: [{
        test: /\.ts$/, loader: 'tslint-loader?emitErrors=true&failOnHint=true', exclude: /node_modules/
      }],
      loaders: [{
        test: /\.ts$/, loader: 'ts-loader', exclude: /node_modules/
      }]
    },
    resolve: {
      extensions: ['', '.ts', '.js']
    }
  };
  