-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Worker scripts not output in correct assets directory #10626
Copy link
Copy link
Closed
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)
Description
Astro Info
Astro v4.5.12
Node v18.18.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?
No response
Describe the Bug
The Astro build is picking up the Worker script file and transforming it and placing it in the dist directory during builds, but it is always placed in dist/assets regardless of what the build.assets configuration is set to.
What's the expected result?
I would expect the worker script to be output to the same directory as other client scripts as specified by the build.assets property in the configuration.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-knx6rb?file=src%2Fpages%2Findex.astro
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)