Astro Info
## v6
Astro v6.0.4
Vite v7.3.1
Node v24.13.0
System Linux (x64)
Package Manager pnpm
Output static
Adapter none
Integrations none
## v5
Astro v5.18.1
Vite v6.4.1
Node v24.13.0
System Linux (x64)
Package Manager pnpm
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In Astro v5, a scss/sass file in the root of the src directory could be referenced by name only (e.g. @use "colors.scss";) if baseUrl in tsconfig.json was set to src
In Astro v6, this no longer works. Using --verbose when launching the dev server, I can see that v6 treats a bare filename as relative to the importer (e.g. src/components/Section.astro with @use "colors.scss"; results in trying to load src/components/colors.scss rather than src/colors.scss).
What's the expected result?
@use "colors.scss"; respects the baseUrl specified in tsconfig.json
Link to Minimal Reproducible Example
https://github.com/ashleigh-yeoman/astro-sass-bug-repro
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In Astro v5, a scss/sass file in the root of the src directory could be referenced by name only (e.g.
@use "colors.scss";) ifbaseUrlintsconfig.jsonwas set tosrcIn Astro v6, this no longer works. Using
--verbosewhen launching the dev server, I can see that v6 treats a bare filename as relative to the importer (e.g.src/components/Section.astrowith@use "colors.scss";results in trying to loadsrc/components/colors.scssrather thansrc/colors.scss).What's the expected result?
@use "colors.scss";respects the baseUrl specified in tsconfig.jsonLink to Minimal Reproducible Example
https://github.com/ashleigh-yeoman/astro-sass-bug-repro
Participation