astro
astro copied to clipboard
🐛 BUG: Path aliases don't work inside <style> blocks
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.
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.