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

Duplicated sourceMappingURL for worker bundles #11601

Closed
7 tasks done
Karshilov opened this issue Jan 5, 2023 · 0 comments · Fixed by #11602
Closed
7 tasks done

Duplicated sourceMappingURL for worker bundles #11601

Karshilov opened this issue Jan 5, 2023 · 0 comments · Fixed by #11602

Comments

@Karshilov
Copy link
Contributor

Describe the bug

After this issue has been resolved, there is no need to add sourceMappingURL manually for worker, and I even noticed a TODO about it.

Now every bundled worker script will have two sourceMappingURL comments if build.sourcemap has been set as true or "inline".

Reproduction

https://stackblitz.com/edit/vitejs-vite-xnuxz2?file=dist%2Fassets%2Flog-8dd97f70.js

Steps to reproduce

  1. add an inline worker script
  2. set build.sourcemap as true or "inline" in vite.config.ts
  3. run pnpm install followed by pnpm build
  4. check the bundled worker script and there is two sourceMappingURL

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 5.96 GB / 15.90 GB
  Binaries:
    Node: 16.17.0 - 
    npm: 8.15.0 - 
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.54)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vitejs/plugin-vue: ^4.0.0 => 4.0.0
    vite: ^4.0.0 => 4.0.4

Used Package Manager

pnpm

Logs

No response

Validations

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

Successfully merging a pull request may close this issue.

1 participant