fix mapbox-gl transpilation

This commit is contained in:
Paul Chavard 2021-03-04 19:04:39 +01:00
parent c8d775af29
commit d4a34edab5

View file

@ -23,7 +23,9 @@ if (!Array.isArray(nodeModulesLoader.exclude)) {
nodeModulesLoader.exclude =
nodeModulesLoader.exclude == null ? [] : [nodeModulesLoader.exclude];
}
nodeModulesLoader.exclude.push(/mapbox-gl/);
nodeModulesLoader.exclude.push({
and: [/mapbox-gl/, { not: [/react-mapbox-gl/] }]
});
// Uncoment next lines to run webpack-bundle-analyzer
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');