Skip to content

Commit 9b54f4d

Browse files
authored
Merge pull request #1435 from OpenGeoscience/adjust-webpack
fix: Fix builds to support older browsers
2 parents 0bfd0b2 + b62c3f2 commit 9b54f4d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

webpack.base.config.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ module.exports = {
5252
},
5353
module: {
5454
rules: [{
55-
test: /\.js$/,
56-
// include: [ path.resolve('src'), ],
57-
exclude: [
58-
/node_modules\/(?!(earcut|kdbush|proj4|wkt-parser)\/).*/,
59-
path.resolve('tests')
55+
test: /\.(js|cjs)$/,
56+
include: [
57+
path.resolve('src'),
58+
/node_modules\/earcut/,
59+
/node_modules\/kdbush/,
60+
/node_modules\/wkt-parser/,
61+
/node_modules\/@velipso\/polybool/
6062
],
6163
use: [{
6264
loader: 'babel-loader',

0 commit comments

Comments
 (0)