Skip to content

Commit

Permalink
Merge pull request #1145 from OpenGeoscience/older-format
Browse files Browse the repository at this point in the history
fix: Build for older browsers.
  • Loading branch information
manthey authored Jan 7, 2022
2 parents 2b0d9f0 + 42eaf49 commit 378afcb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = {
mousetrap: 'mousetrap/mousetrap.js'
}
},
target: ['web', 'es5'],
plugins: [
define_plugin
],
Expand All @@ -56,7 +57,14 @@ module.exports = {
rules: [{
test: /\.js$/,
include: path.resolve('src'),
use: ['babel-loader']
use: [{
loader: 'babel-loader',
options: {
presets: [['@babel/preset-env', {
targets: 'defaults, PhantomJS 2.1'
}]]
}
}]
}, {
test: /\.js$/,
include: [
Expand Down

0 comments on commit 378afcb

Please sign in to comment.