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

Inline webworker issue since 2.3.4 #3768

Closed
tjk opened this issue Jun 11, 2021 · 2 comments
Closed

Inline webworker issue since 2.3.4 #3768

tjk opened this issue Jun 11, 2021 · 2 comments

Comments

@tjk
Copy link
Contributor

tjk commented Jun 11, 2021

Describe the bug

As of vite 2.3.4 (maybe due to #3468), inline webworkers generate Uncaught SyntaxError: Unexpected token 'export'. This error was not produced in chrome in vite 2.3.3 (see repro link below)

Reproduction

https://github.com/tjk/vite-inline-webworker-issue

System Info

  System:
    OS: Linux 5.10 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900KF @ 3.50GHz
    Memory: 9.61 GB / 12.38 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 12.18.1 - ~/.asdf/installs/nodejs/12.18.1/bin/node
    Yarn: 1.22.5 - ~/.asdf/shims/yarn
    npm: 6.14.5 - ~/.asdf/installs/nodejs/12.18.1/bin/npm
  npmPackages:
    @vitejs/plugin-vue: ^1.2.3 => 1.2.3
    vite: 2.3.4 => 2.3.4

Used package manager: yarn

@tjk
Copy link
Contributor Author

tjk commented Jun 20, 2021

@bluwy
Copy link
Member

bluwy commented Mar 11, 2022

I've tested the repro in Vite 2.8.6. The issue seems to be fixed now.

@bluwy bluwy closed this as completed Mar 11, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants