diff --git a/examples/demo-app/webpack.config.js b/examples/demo-app/webpack.config.js index ec4504becc..db8fed0a9f 100644 --- a/examples/demo-app/webpack.config.js +++ b/examples/demo-app/webpack.config.js @@ -42,12 +42,6 @@ const CONFIG = { test: /\.mjs$/, include: /node_modules/, type: 'javascript/auto' - }, - // netlify biulder complains loader not found for these modules - { - test: /\.(js|ts)$/, - loader: 'babel-loader', - include: [/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 2d18452399..bd20d99b11 100644 --- a/website/webpack.config.js +++ b/website/webpack.config.js @@ -75,11 +75,12 @@ const COMMON_CONFIG = { type: 'javascript/auto' }, // for compiling @probe.gl, website build started to fail (March, 2024) + // netlify biulder complains loader not found for these modules (April, 2024) { test: /\.(js)$/, loader: 'babel-loader', options: BABEL_CONFIG, - include: /node_modules\/@probe.gl/ + include: [/node_modules\/@probe.gl/, /node_modules\/@loaders.gl/, /node_modules\/@math.gl/] } ] },