Reading issue
withastro / astro · Issue No. 18087
Astro v7.3.3
Node v24.20.0
System macOS (arm64)
Package Manager pnpm
Output static
Adapter none
Integrations @astrojs/starlight
No response
When creating a new Starlight project and running the build command, I get the following warning:
18:30:37 [build] Building static entrypoints...
18:30:38 [WARN] [vite] [MODULE_LEVEL_DIRECTIVE] The semantics of the module level directive "use astro:head-inject" in "src/content/docs/index.mdx?astroPropagatedAssets" may not be preserved when bundling.
╭─[ src/content/docs/index.mdx?astroPropagatedAssets:2:6 ]
│
2 │ "use astro:head-inject";
│ ────────────┬───────────
│ ╰───────────── module level directive may not be preserved
│
│ Help: For more information, see https://rolldown.rs/in-depth/directives#other-directives
───╯
18:30:38 [vite] ✓ built in 498ms
I guess technically it could happen in any Astro project and not only in Starlight projects.
No warning.
https://github.com/HiDeoo/astro-module-level-directive-warning-repro
Relay reads this issue against the repository's contribution signals: the files it is likely to touch, how the maintainers triage work this size, and what the first contribution would exercise.
The full analysis for this issue is still being assembled. Until then, the description above and the thread on GitHub are the most reliable context.