simonw/datasette-leaflet-freedraw

This still loads Leaflet twice

Open

#5 opened on Jan 25, 2021

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (2 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (19 stars)
PR merge metrics
 (PR metrics pending)

Description

My goal with #3 was to avoid loading Leaflet multiple times. But it looks like the leaflet-freedraw.esm.js file weighs in at 873KB because it includes a full copy of Leaflet itself!

Need to figure out how to build FreeDraw as a separate module that doesn't include Leaflet.

Contributor guide