Skip to content

ESM Modules Support / importScripts Errors #983

@thecynicalpaul

Description

@thecynicalpaul

Hi there, thank you for the wonderful work upkeeping this as always.

Not sure if this is the right place, but wanted to get some insight on this. Our team is currently in the process of transitioning our main project to webpack 5, and we are unable to get worklets working with it. Essentially, webpack is splitting imports that we have inside our WorkletProcessor code into chunks and tries to inject them back using importScripts directive at run-time. From what I understand, importing doesn't work in processors whatsoever (please correct me if I am wrong), and so we are stuck there.

Please take a look at the issues being outlined here:
webpack/webpack#11543
vercel/next.js#24907
vercel/next.js#29472

Would love to hear your thoughts on this, and see if anything can be done from your library's side, or if there is anything that we could be doing right, as our knowledge of WebAudio is not as advanced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions