module.exports = {
  entry: './src/wildcard-regex.js',
  output: {
    path: './dist',
    filename: 'wildcard-regex.js',
    library: 'wildcardRegex',
    libraryTarget: 'umd'
  }
};

module.exports = {
  entry: './src/index.js',
  output: {
    path: './dist',
    filename: 'wildcard-regex.js',
    library: 'wildcardRegex',
    libraryTarget: 'umd'
  }
};

Update webpack.config.js to reflect new entry point in src/index.js