module.exports = {
  entry: {
    index: './src/index.jsx',
    more: './src/more.jsx'
  },
  module: {
    loaders: [
      {
        test: /\.jsx$/,
        loader: 'babel'
      }
    ]
  },
  resolve: {
    alias: {
      "highcharts" : "highcharts-release/highcharts.src.js",
      "highcharts-more" : "highcharts-release/highcharts-more.src.js",
      "highcharts-standalone-adapter" : "highcharts-release/adapters/standalone-framework.src.js",
      "react-highcharts/more": '../../src/More.jsx',
      "react-highcharts": '../../src/Highcharts.jsx'
    },
    modulesDirectories: ['node_modules']
  },
  output: {
    filename: 'dist/[name].js',
    libraryTarget: 'umd',
    library: 'Highcharts'
  }
};
module.exports = {
  entry: {
    index: './src/index.jsx',
    more: './src/more.jsx'
  },
  module: {
    loaders: [
      {
        test: /\.jsx$/,
        loader: 'babel'
      }
    ]
  },
  resolve: {
    alias: {
      "highcharts" : "highcharts-release/highcharts.src.js",
      "highcharts-more" : "highcharts-release/highcharts-more.src.js",
      "highcharts-standalone-adapter" : "highcharts-release/adapters/standalone-framework.src.js",
      "react-highcharts/more": '../../src/More.jsx',
      "react-highcharts": '../../src/Highcharts.jsx'
    },
    modulesDirectories: ['node_modules']
  },
  output: {
    filename: 'dist/[name].js'
  }
};
Fix `Highcharts.extend is not a function` error in the demo
Fix `Highcharts.extend is not a function` error in the demo

This was caused because the Webpack UMD definition was overriding `window.Highchart` in the demo.
