Skip to content

Commit

Permalink
Fixed Webpack builds
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Markov <[email protected]>
  • Loading branch information
Sergey Markov committed Sep 13, 2024
1 parent f8e7b41 commit b209c48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions bindings/kepler.gl-jupyter/js/webpack/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const rules = [
// fix for arrow-related errors
{
test: /\.mjs$/,
// include: /node_modules\/apache-arrow/,
// include: /node_modules[\\/]apache-arrow/,
include: /node_modules/,
type: 'javascript/auto'
},
Expand All @@ -25,9 +25,9 @@ const rules = [
test: /\.(js|ts)$/,
loader: 'babel-loader',
include: [
/node_modules\/@probe.gl/,
/node_modules\/@loaders.gl/,
/node_modules\/@math.gl/
/node_modules[\\/]@probe.gl/,
/node_modules[\\/]@loaders.gl/,
/node_modules[\\/]@math.gl/
]
}
];
Expand Down
6 changes: 3 additions & 3 deletions website/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const COMMON_CONFIG = {
// for compiling apache-arrow ESM module
{
test: /\.mjs$/,
include: /node_modules\/apache-arrow/,
include: /node_modules[\\/]apache-arrow/,
type: 'javascript/auto'
},
// for compiling @probe.gl, website build started to fail (March, 2024)
Expand All @@ -81,7 +81,7 @@ const COMMON_CONFIG = {
test: /\.(js)$/,
loader: 'babel-loader',
options: BABEL_CONFIG,
include: [/node_modules\/@probe.gl/, /node_modules\/@loaders.gl/, /node_modules\/@math.gl/]
include: [/node_modules[\\/]@probe.gl/, /node_modules[\\/]@loaders.gl/, /node_modules[\\/]@math.gl/]
}
]
},
Expand Down Expand Up @@ -115,7 +115,7 @@ const addDevConfig = config => {
test: /\.js$/,
use: ['source-map-loader'],
enforce: 'pre',
exclude: [/node_modules\/react-palm/, /node_modules\/react-data-grid/]
exclude: [/node_modules[\\/]react-palm/, /node_modules[\\/]react-data-grid/]
});

return Object.assign(config, {
Expand Down

0 comments on commit b209c48

Please sign in to comment.