You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a nodejs project using vite that doesn't build for a user on freebsd due to no native rollup binary for that arch. I see @rollup/wasm-node being recommended in many other issues as a drop-in replacement for rollup ( 1234 ) and I see it officially recommended in the rollup 4 migration guide but there is basically zero documentation on what it actually is.
Using wasm-node has worked for fixing my user's freebsd issue but I have no idea if this is a fix I should make permanent for my project or not due to the lack of context on when I should use it. I'd like these questions answered so I can make a more informed decision:
What is wasm-node and what problem was it created to solve?
Is it truly a drop-in replacement for regular rollup on nodejs? Is it safe to use in production?
Are there any advantages or disadvantages to using it compared to regular rollup? Limitation on features? Performance differences?
If it's solving the issue of platform-dependency so well and is a true drop-in replacement why isn't it the standard?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a nodejs project using vite that doesn't build for a user on freebsd due to no native rollup binary for that arch. I see
@rollup/wasm-node
being recommended in many other issues as a drop-in replacement for rollup ( 1 2 3 4 ) and I see it officially recommended in the rollup 4 migration guide but there is basically zero documentation on what it actually is.Using wasm-node has worked for fixing my user's freebsd issue but I have no idea if this is a fix I should make permanent for my project or not due to the lack of context on when I should use it. I'd like these questions answered so I can make a more informed decision:
Beta Was this translation helpful? Give feedback.
All reactions