Skip to content

Commit

Permalink
fix netlify build error cont
Browse files Browse the repository at this point in the history
Signed-off-by: Xun Li <lixun910@gmail.com>
  • Loading branch information
lixun910 committed Apr 23, 2024
1 parent 43e4d04 commit 4b121af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions examples/demo-app/webpack.config.js
Expand Up @@ -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/]
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion website/webpack.config.js
Expand Up @@ -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/]
}
]
},
Expand Down

0 comments on commit 4b121af

Please sign in to comment.