From 27f3b67c529425dab8dc95621608e32b848d9c27 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 10 Oct 2023 10:35:40 -0400 Subject: [PATCH] fix: Ensure compatibility with older systems We need to keep the old grider tests running. --- webpack.base.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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' + }]] } }] }, {