kylebarron / arrow-js-ffi

Zero-copy reading of Arrow data from WebAssembly
https://www.npmjs.com/package/arrow-js-ffi
MIT License
105 stars 5 forks source link

Improved tree shaking? #70

Open kylebarron opened 9 months ago

kylebarron commented 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

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.

kylebarron commented 9 months ago

It should be possible to try this and see how much the output rollup sizes change