You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Currently the georaster-layer-for-leaflet package points to the minified file which includes pretty much all the dependencies (eg proj4, chromajs etc).
The minified files are handy for distributing a single file via a CDN. But it's not so good when importing packages which is how the bulk of apps are built these days - I think it's resulting in duplicate copies of libraries being included in an app because they won't be properly tree-shaken.
What I think needs to happen in the package.json is something like
"source": "src/georaster-layer-for-leaflet.ts", <--- although I think perhaps this needs culling
"main": "dist/georaster-layer-for-leaflet.bundle.js",
"module": "dist/georaster-layer-for-leaflet.js",
"type": "module",
"unpkg": "dist/georaster-layer-for-leaflet.min.js",
This should make for better usage downstream 🤞 .
The text was updated successfully, but these errors were encountered:
Describe the bug
Currently the georaster-layer-for-leaflet package points to the minified file which includes pretty much all the dependencies (eg proj4, chromajs etc).
georaster-layer-for-leaflet/package.json
Lines 5 to 8 in 1b05e99
The minified files are handy for distributing a single file via a CDN. But it's not so good when importing packages which is how the bulk of apps are built these days - I think it's resulting in duplicate copies of libraries being included in an app because they won't be properly tree-shaken.
What I think needs to happen in the package.json is something like
This should make for better usage downstream 🤞 .
The text was updated successfully, but these errors were encountered: