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

top-level await support #52

Open
mfulton26 opened this issue Jun 26, 2023 · 0 comments
Open

top-level await support #52

mfulton26 opened this issue Jun 26, 2023 · 0 comments

Comments

@mfulton26
Copy link

currently I'm doing the following on the return value of __shimport__.transform() to avoid top-level await errors in my service worker (as service workers do not yet support such):

code.replace(
  "function(__import,",
  "async function(__import,"
);

is it reasonable to change transform() to always output async function(__import, or to create an option for such?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant