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'
  }
};

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'
  }
};

--- 
+++ 
@@ -1,11 +1,9 @@
 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:
+  // 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': ['./storage-expires'],
-  },
+  entry: ['./storage-expires'],
   output: {
     path: __dirname + '/dist',
     filename: '[name].js',
Fix dist filename workaround for webpack error: Error: a dependency to an entry point is not allowed
