I am developing a web application using React and different other libraries.
I am using Windy API (weather forecast) which uses leaflet library 1.4.0.
I would also like to use leaflet in the same application but this time using the latest version 1.7.1.
I import leaflet 1.4.0 with the CDN as described in the Windy API documentation.
I import the latest version with npm.
The problem is leaflet is creating a global variable L, so when I import the latest version of leaflet, the API windy is not working.
I tried to import leaflet with allias but it doesn't change the problem of the global variable.
Is possible to change the name of the global variable? Any suggestions to solve this problem?
Thank you !