geoarrow-rs icon indicating copy to clipboard operation
geoarrow-rs copied to clipboard

When run build in vite, it doesnt work in production

Open ticky-xia opened this issue 1 month ago • 2 comments

In Vite, I use vite-plugin-wasm in dev env, and everything works well,but if I run build , the /bunlder/index.js looks like doesnt init the WebAssembly.Then I found the sideEffects option in package.json when run build.tree-shaking will remove the init code __wbg_set_wasm(wasm). The source code looks like below:

Image

It should be like:

Image

ticky-xia avatar Nov 07 '25 07:11 ticky-xia

Thanks! Would you be able to open a PR?

kylebarron avatar Nov 07 '25 14:11 kylebarron

OK,this weekend

ticky-xia avatar Nov 10 '25 02:11 ticky-xia