Commit 58a19d1
committed
📦 Ensure the leaflet import is coordinated with react-leaflet-draw
react-leaflet-draw imports the default import (module), which
gets mutated by the side-effects from leaflet-draw that adds
leaflet.Draw.
When using the 'import * as L' variant, L.Draw is not available
as L and leaflet end up being different objects, breaking the
SDK storybook/build.
Using the default import seems to resolve this - hopefully
there are no other cases where this causes issues (e.g. with
other libraries...).
The inlining of the formio-renderer in the SDK *may* have
something to do with this, but frankly I don't understand
bundlers, nor do I have a desire to understand the whole module
resolution mechanics and side-effects bull$hit going on.1 parent 9d2adb0 commit 58a19d1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments