diff --git a/webpack.base.config.js b/webpack.base.config.js index 6ce2d4ae30..0c3d7ab33f 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -55,7 +55,8 @@ module.exports = { module: { rules: [{ test: /\.js$/, - include: path.resolve('src'), + // include: path.resolve('src'), + exclude: /node_modules\/(?!kdbush\/).*/, use: [{ loader: 'babel-loader', options: { @@ -75,7 +76,10 @@ module.exports = { use: [{ loader: 'babel-loader', options: { - cacheDirectory: true + cacheDirectory: true, + presets: [['@babel/preset-env', { + targets: 'defaults, PhantomJS 2.1' + }]] } }] }, {