Using collections: true
fixes this issue:
new LodashModuleReplacementPlugin({
collections: true
})
While using lodash-webpack-plugin (v0.11.5) react-google-maps (v9.4.5) doesn't work properly without emitting any errors to console in dev and prod builds. react-google-maps shows blank grey space.
Clone below repro repo, install dependencies (npm i) and run it locally (http://localhost:8000).
- Repro repo:
https://github.com/aziolek/bug-repro-repo-lodash-webpack-plugin
- To run it locally without lodash-webpack-plugin:
npm run nlwp
- To run it locally with lodash-webpack-plugin:
npm run wlwp
See the difference. Ignore google maps dev mode and load warning, they don't matter.
react-google-maps works while using lodash-webpack-plugin.
- Linux Mint 18.3 Cinnamon 64-bit
- Google Chrome - Version 67.0.3396.87 (Official Build) (64-bit)
- Firefox Quantum - Version 60.0.2 (64-bit)