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

Configuration Recommendation for usage with AudioWorklet #88

Open
mulder999 opened this issue Jan 18, 2024 · 1 comment
Open

Configuration Recommendation for usage with AudioWorklet #88

mulder999 opened this issue Jan 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mulder999
Copy link

The method AudioContext.audioWorklet.addModule seems to mandate an external file.

Hence I am seeking recommendations on how to configure Vite and ViteSingleFile plugin to support this specific usage.

Thank you in advance for your support.

@richardtallent
Copy link
Owner

If you can provide a minimal reproduction, it's possible I or someone more familiar with that API could take a look.

Taking a wild guess, your best bet is probably using a data URL:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs

@richardtallent richardtallent added the enhancement New feature or request label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants