withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
43.84k stars 2.28k forks source link

Web Workers issue with using npm packages #11317

Closed sz44 closed 4 days ago

sz44 commented 5 days ago

Astro Info

Astro                    v4.11.0
Node                     v22.3.0
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

Chrome

Describe the Bug

Web Workers are unable to access packages after building and running preview. It works from dev server. For example, lodash. If it's used from a non-worker file or inside Githubissues.

  • Githubissues is a development platform for aggregating issues.