PaulLeCam / react-leaflet

React components for Leaflet maps
https://react-leaflet.js.org
Other
5.16k stars 886 forks source link

Possibility to use react-leaflet using script tag? #1088

Open jensb opened 1 year ago

jensb commented 1 year ago

I would like to import react-leaflet using a <script src=..."> tag, directly inside a browser-readable HTML file, instead of using a package manager like NPM with "require" and "import" statements. Such a single file approach seems like a good way of testing isolated React components and debug small apps but the last version with a minified "one file for all" .min.js that I can find on unpkg.com and related CDNs was 2.8.0 and it didn't even work.

Is it possible to provide such a minifed "contains everything" file for use via CDNs in future versions?