Skip to content

Commit

Permalink
force babel conversion of mpoly and geowarp
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Jun 23, 2023
1 parent 5f3438b commit 18ae9de
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ const config = (env, argv) => {
{
test: /\.js/,
loader: 'babel-loader',
exclude: modulePath => (
/node_modules/.test(modulePath) &&
exclude: modulePath => {
// need to compile these
if (["/node_modules/mpoly/mpoly.js", "/node_modules/geowarp/geowarp.js"].some(fp => modulePath.endsWith(fp))) {
return false;
}
return /node_modules/.test(modulePath) &&
!/node_modules\/webpack-dev-server/.test(modulePath) &&
!/node_modules\/map-obj/.test(modulePath)
),
},
options: {
presets: [
[
Expand Down

0 comments on commit 18ae9de

Please sign in to comment.