Merge pull request #5961 from tchak/fix-carto

fix mapbox-gl transpilation
This commit is contained in:
krichtof 2021-03-04 19:46:40 +01:00 committed by GitHub
commit abb8b04208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');