mirror of
https://github.com/withastro/astro.git
synced 2025-12-05 18:56:38 -06:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@astrojs/ts-plugin
Using the Astro VS Code extension? This plugin is automatically installed and configured for you.
TypeScript plugin adding support for .astro imports in .ts files. This plugin also adds support for renaming symbols and finding references across .ts and .astro files.
Installation
npm install --save-dev @astrojs/ts-plugin
Usage
Add the plugin to your tsconfig.json:
{
"compilerOptions": {
"plugins": [
{
"name": "@astrojs/ts-plugin"
}
]
}
}