Small library size & building from fork #61
Replies: 1 comment
-
Hey @jacksongoode great question.
Woah! That's great. Your changes look good. If you're having trouble building, take a look at the From that point you should be able to import it into your project the same as you do with the official @elemaudio/web-renderer package. You'll just have to find a way to distribute the custom Let me know if that helps |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In an effort to make the library smaller by avoiding building in any nodes or utilities that I'm not using my project, I went through and commented out a handful of paths that didn't need to be in the final bundle. The result was a wasm bundle about half the size.
However, I'm struggling to figure out how to install the modified library if I fork the project. It seems like I can build the Wasm bundle, but then inserting it into the resultant index.js and a build is what I'm a little bit confused around. I thought a postinstall script might be able to do it but I thought I would have seen some clarity on how the final dist was formed. Here's my branch so you can see the minimal changes I made. I imagine I'm missing something simple.
Beta Was this translation helpful? Give feedback.
All reactions