Skip to content

?url imports are excluded from build with Astro 5.14.7 or higher #14604

@simensfo

Description

@simensfo

Astro Info

Astro                    v5.14.7
Vite                     v6.4.1
Node                     v20.19.1
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  @astrojs/node (v9.5.0)
Integrations             none

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

No response

Describe the Bug

assets imported using the ?url suffix work fine in dev mode, but are not included in the build

What's the expected result?

the assets should be included in the build and loaded as expected

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ge7ebseu

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)feat: assetsRelated to the Assets feature (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions