Open kazssym opened 4 years ago
It probably needs script.type = 'module'
after the element creation.
It probably needs
script.type = 'module'
after the element creation.
I was wrong. I have learned module scripts cannot be eval()
ed. It must be rewritten using import()
somehow.
https://github.com/GoogleChromeLabs/audioworklet-polyfill/blob/8f4123163fe36f4f5453894f847c6d541e56b074/src/realm.js#L36
Supplied worklet modules must be loaded as module scripts according to https://drafts.css-houdini.org/worklets/#code-idempotency.