diff --git a/bindings/kepler.gl-jupyter/js/webpack/config.js b/bindings/kepler.gl-jupyter/js/webpack/config.js index bf2ef5394c..1d8651272d 100644 --- a/bindings/kepler.gl-jupyter/js/webpack/config.js +++ b/bindings/kepler.gl-jupyter/js/webpack/config.js @@ -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' }, @@ -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/ ] } ]; diff --git a/website/webpack.config.js b/website/webpack.config.js index 66b247eaff..41093a06f0 100644 --- a/website/webpack.config.js +++ b/website/webpack.config.js @@ -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) @@ -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/] } ] }, @@ -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, {