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

Use ES module for the web worker in playground #152

Open
adelhult opened this issue Mar 10, 2023 · 1 comment
Open

Use ES module for the web worker in playground #152

adelhult opened this issue Mar 10, 2023 · 1 comment
Labels

Comments

@adelhult
Copy link
Collaborator

Describe the bug
To support all major browser the web worker used to run the compiler in the playground currently uses a bit of an ugly import system. This is because ES modules (i.e. js that uses the nice import syntax) is not supported inside of web workers in Firefox. It looks like this is about to change in the next upcoming version, so we should switch to the cleaner solution then.

@CMDJojo
Copy link
Member

CMDJojo commented Mar 12, 2023

Current state: See pr #154. Firefox 111 has support for module workers but it is controlled by a flag which is disabled by default. It would probably be too much of an inconvenience for users to have to enable a flag to use our playground on a major browser, so I think we should shelve this until it has support without using a custom flag.

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

Successfully merging a pull request may close this issue.

2 participants