-
Notifications
You must be signed in to change notification settings - Fork 507
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
feat: allow specifying wasm plugin options #450
Conversation
Jaha, I thought so, too. But spreading a boolean is not allowed, sadly. |
Try this |
I tried that too before and saw that it works just fine. Only TS is not allowing it. I don't know if you accept |
We can also use |
Thanks! |
I'm using nitro in Nuxt 3 and I found that the default options only work when the WASM file is smaller than the default inlining-threshold. Otherwise the Nuxt3 NodeJS server environment (and other server targets I'd imagine) chokes on the wasm plugin using
require()
calls (how dare them userequire
in NodeJS! :D). And even if that would be fixed upstream in the@rollup/plugin-wasm
package, it's still nice to be able to change the default options here.