astro/packages
Jonathan Neal ba38147ccc
Support tsconfig.json & jsconfig.json aliases (#1747)
* Resolve paths from tsconfig or jsconfig

https://code.visualstudio.com/docs/languages/jsconfig
https://nextjs.org/docs/advanced-features/module-path-aliases

* edit: rename plugin to `@astrojs/vite-plugin-tsconfig-alias`

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* edit: switch from `ps` to `path.posix`

* edit: move sanitization of paths to loop

* edit: rename `resolveConfigPaths` to `configAliasVitePlugin`

* edit: update implementation based on feedback

* prettier

* edit: rename `matchTailingAsterisk` to `matchTrailingAsterisk`

* edit: cleanup with comments

* edit: spellcheck `condition` to `conditionally`

* edit: refactor based on feedback

* edit: Update README.md

* edit: cleanup baseUrl transformation and add explainer comments

* edit: cleanup resolutions and add commenting

* yarn lint

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-11-09 12:57:43 -05:00
..
astro Support tsconfig.json & jsconfig.json aliases (#1747) 2021-11-09 12:57:43 -05:00
astro-parser Version Packages (#1246) 2021-08-27 10:46:14 -04:00
astro-prism Version Packages (next) (#1709) 2021-10-29 14:48:54 -05:00
create-astro Adds a new example template portfolio-svelte (#1667) 2021-11-02 12:48:00 -04:00
markdown/remark Version Packages (next) (#1709) 2021-10-29 14:48:54 -05:00
renderers Version Packages (next) (#1709) 2021-10-29 14:48:54 -05:00