astro icon indicating copy to clipboard operation
astro copied to clipboard

🐛 BUG: Path aliases don't work inside <style> blocks

Open SachaG opened this issue 3 years ago • 1 comments

What version of astro are you using?

1.0.0-beta.44

Are you using an SSR adapter? If so, which one?

No

What package manager are you using?

npm

What operating system are you using?

Mac OS

Describe the Bug

Path aliases defined inside tsconfig.json don't work inside an Astro <style> block.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-3n5sn9?file=src/pages/index.astro

Participation

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

SachaG avatar Jun 12 '22 21:06 SachaG

Thanks for opening an issue! This is definitely an edge case that we should fix. My suspicion is that these styles aren't using Rollup for import resolution, but that's the only place our aliases are handled.

natemoo-re avatar Jun 13 '22 18:06 natemoo-re