fix mapbox-gl transpilation
This commit is contained in:
parent
c8d775af29
commit
d4a34edab5
1 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue