Closed ivorbosloper closed 7 years ago
So, If we change the package.json we will stop having this problem?
I'm just learning to use these npm/webpack build tools, so I'm not 100% sure. I've tested this change in my project and it works.google-maps
becomes an external dependency, just like react and react-leaflet. Now I can share the google-maps instance with another module. The package manager resolves this dependency. A user without module-loader has to include google maps with a default script include. So the problem is fixed...
Make
google-maps
an external dependency