react-leaflet icon indicating copy to clipboard operation
react-leaflet copied to clipboard

Possibility to use react-leaflet using script tag?

Open jensb opened this issue 11 months ago • 0 comments

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?

jensb avatar Aug 04 '23 19:08 jensb