Skip to content

Commit

Permalink
Merge pull request #1293 from OpenGeoscience/fix-es5-build
Browse files Browse the repository at this point in the history
fix: Ensure compatibility with older systems
  • Loading branch information
manthey authored Oct 10, 2023
2 parents 0539ead + 27f3b67 commit 96e7e30
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -75,7 +76,10 @@ module.exports = {
use: [{
loader: 'babel-loader',
options: {
cacheDirectory: true
cacheDirectory: true,
presets: [['@babel/preset-env', {
targets: 'defaults, PhantomJS 2.1'
}]]
}
}]
}, {
Expand Down

0 comments on commit 96e7e30

Please sign in to comment.