Open kylebarron opened 9 months ago
I previously found that importing from * as arrow meant that esbuild couldn't treeshake at all. https://github.com/geoarrow/geoarrow-js/pull/20
* as arrow
So maybe this lib should use path imports? It does have to import every type necessarily because it doesn't know what data type the C struct will be.
It should be possible to try this and see how much the output rollup sizes change
I previously found that importing from
* as arrow
meant that esbuild couldn't treeshake at all. https://github.com/geoarrow/geoarrow-js/pull/20So maybe this lib should use path imports? It does have to import every type necessarily because it doesn't know what data type the C struct will be.