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
Is your feature request related to a problem? Please describe.
Currently, the NPM users have to manually copy over the worklet_processor.min.js every update. This is not good, and there's no way to tell bundlers to import it from node_modules
Is your feature related to the sound library or the app/website?
spessasynth_lib
Describe the solution you'd like
Something better that the current implementation. I'm not good with npm or bundlers, so help would be appreciated!
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for the suggestion.
Unfortunately, it is not suitable for the following reasons:
This solution assumes that all users keep their distribution files in a folder called public/dist. That is not always the case. I, for example usually use a folder named production.
This solution does not work with MacOS and Linux as they don't use batch files.
The idea is for the module to not require copying manually at all. I essentially either want to make audioWorklet.addModule be treated like an es6 import and using the worklet processor inside the package, or somehow tell bundlers that they should adjust the path in the import so it points to the processor in the package.
Would the npm run command work with the ENV variable for the webserver path (My Second Suggestion above.) work ? This would be platform independent . Even if the builder is able to get the worklet path right you still need to move the files from node_modules to the webserver .
Is your feature request related to a problem? Please describe.
Currently, the NPM users have to manually copy over the worklet_processor.min.js every update. This is not good, and there's no way to tell bundlers to import it from
node_modules
Is your feature related to the sound library or the app/website?
spessasynth_lib
Describe the solution you'd like
Something better that the current implementation. I'm not good with npm or bundlers, so help would be appreciated!
The text was updated successfully, but these errors were encountered: