Skip to content

Worker scripts not output in correct assets directory #10626

@nerdoza

Description

@nerdoza

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.

Metadata

Metadata

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)pkg: astroRelated to the core `astro` package (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions