module.exports = {
  // Need an array instead of just a string, I think because Karma
  // makes two builds where one requires the other, leading to:
  // `Error: a dependency to an entry point is not allowed`
  // https://github.com/webpack/webpack/issues/300
  entry: ['./storage-expires'],
  output: {
    path: __dirname + '/dist',
    filename: '[name].js',
    library: '[name]',
    libraryTarget: 'umd'
  }
};

module.exports = {
  // Need an object+array instead of just a string, I think because
  // Karma makes two builds where one requires the other, leading to:
  // `Error: a dependency to an entry point is not allowed`
  // https://github.com/webpack/webpack/issues/300
  entry: {
    'storage-expires': ['./storage-expires'],
  },
  output: {
    path: __dirname + '/dist',
    filename: '[name].js',
    library: '[name]',
    libraryTarget: 'umd'
  }
};

Fix dist filename workaround for webpack error: Error: a dependency to an entry point is not allowed
Fix dist filename workaround for webpack error: Error: a dependency to an entry point is not allowed
