wasm-tool / parcel-plugin-wasm.rs

wasm-bindgen support for Parcel bundler
MIT License
66 stars 16 forks source link

Feature request: build --debug as default. #23

Closed extraymond closed 5 years ago

extraymond commented 5 years ago

Hi! Thx for creating this awesome tool. Just discovered something accidentally.

Since user might use parcel to build not only rust but also html/css/js, it might makes more sense to trigger wasm-pack build --debug instead of release as default. So parcel users will have expected behavior between start(dev) and build(release).

This change might help users speedup compile time during dev therefore having better dev experience when programming in rust.

catsigma commented 5 years ago

A new version 1.2.13 has been released to solve this issue.

Now you can use WASM_PACK_PROFILE=dev parcel src/index.html to enable the dev profile for wasm-pack.

extraymond commented 5 years ago

Thx!!!