You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for TypeScript config path mapping in CSS files (#1106)
This is a work in progress with a handful of things that need
improvements regarding stylesheet loading / editing when in a v4
project.
Fixes#1103Fixes#1100
- [x] Recover from missing stylesheet imports
- [ ] Recover from unparsable stylesheet imports (not sure if possible)
- [x] Read path aliases from tsconfig.json
- [x] Log errors from analyzing CSS files during the resolve imports
stage (the cause of #1100)
- [x] Watch for tsconfig.json file changes and reload when they change
(or maybe only when the list of seen `paths` do)
- [x] Consider path aliases when doing project discovery
- [x] Consider path aliases when loading the design system
- [x] Allow in `@import`
- [x] Allow in `@reference`
- [x] Allow in `@config`
- [x] Allow in `@plugin`
- [ ] Consider path aliases when producing diagnostics
- [ ] Allow in `@import`
- [ ] Allow in `@reference`
- [x] Allow in `@config` (nothing to do here)
- [x] Allow in `@plugin` (nothing to do here)
- [ ] Consider path aliases when generating document links
- [ ] Allow in `@import` (no upstream support; non-trivial)
- [ ] Allow in `@reference` (no upstream support in `@import`;
non-trivial)
- [x] Allow in `@config`
- [x] Allow in `@plugin`
- [ ] Consider path aliases when offering completions
- [ ] Allow in `@import` (no upstream support; non-trivial)
- [ ] Allow in `@reference` (no upstream support in `@import`;
non-trivial)
- [x] Allow in `@config`
- [x] Allow in `@plugin`
`hoist-at-import: The file '${result.opts.from}' contains @import rules after other at rules. This is invalid CSS and may cause problems with your build.`,
0 commit comments