diff --git a/config/webpack/environment.js b/config/webpack/environment.js index d689af6dd..deb5c4c44 100644 --- a/config/webpack/environment.js +++ b/config/webpack/environment.js @@ -23,9 +23,9 @@ if (!Array.isArray(nodeModulesLoader.exclude)) { nodeModulesLoader.exclude = nodeModulesLoader.exclude == null ? [] : [nodeModulesLoader.exclude]; } -nodeModulesLoader.exclude.push({ - and: [/mapbox-gl/, { not: [/react-mapbox-gl/] }] -}); +nodeModulesLoader.exclude.push( + path.resolve(__dirname, '..', '..', 'node_modules/mapbox-gl') +); // Uncoment next lines to run webpack-bundle-analyzer // const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');