Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using plugins for optimising Rust WASM outputs #3764

Closed
ChetanBhasin opened this issue Nov 11, 2019 · 1 comment
Closed

Using plugins for optimising Rust WASM outputs #3764

ChetanBhasin opened this issue Nov 11, 2019 · 1 comment

Comments

@ChetanBhasin
Copy link

❔ Question

Hi! Is there a way to call external binaries or plugins on the build outputs for things such as optimisations.

πŸ”¦ Context

The generated WASM binaries from Rust are often large and can be optimised.

I was hoping to call something like wasm-snip to optimise the build WASM outputs.

I took a quick look around to see if this can be done with Cargo configuration so Parcel doesn't need to be configured, but couldn't come up with a useful solution.

πŸ’» Code Sample

I used this example code.

🌍 Your Environment

Software Version(s)
Parcel 1.12.4
Node 10.13.0
npm/Yarn NPM 6.13.0
Operating System Mac OS Catalina
@mischnic
Copy link
Member

This isn't currently possible within Parcel itself, you could run it afterwards.
I'll post this on #3365 so we can consider it when Rust support will be added to Parcel 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants