const glob = require('glob');
const path = require('path');

module.exports = {
  entry: {
    'index': './src/index.js',
    'test': ['babel-polyfill', ...glob.sync('./test/**/*-test.js')],
  },
  output: {
    path: path.resolve(__dirname, 'build'),
    publicPath: '/build/',
    filename: '[name].js',
  },
  devtool: '#source-map',
  module: {
    rules: [
      {
        use: {
          loader: 'babel-loader',
          options: {
            presets: [['es2015', {'modules': false}]],
            plugins: ['dynamic-import-system-import'],
          },
        },
        resource: {
          test: /\.js$/,
          exclude: /node_modules\/(?!(autotrack|dom-utils))/,
        },
      },
    ],
  },
  stats: 'minimal',
};

const glob = require('glob');
const path = require('path');

module.exports = {
  entry: {
    'index': './src/index.js',
    'test': ['babel-polyfill', ...glob.sync('./test/*-test.js')],
  },
  output: {
    path: path.resolve(__dirname, 'build'),
    publicPath: '/build/',
    filename: '[name].js',
  },
  devtool: '#source-map',
  module: {
    rules: [
      {
        use: {
          loader: 'babel-loader',
          options: {
            presets: [['es2015', {'modules': false}]],
            plugins: ['dynamic-import-system-import'],
          },
        },
        resource: {
          test: /\.js$/,
          exclude: /node_modules\/(?!(autotrack|dom-utils))/,
        },
      },
    ],
  },
  stats: 'minimal',
};

Remove the glob matcher for Windows compat
Remove the glob matcher for Windows compat

https://github.com/philipwalton/analyticsjs-boilerplate/issues/7#issuecomment-282106560
