diff --git a/.changeset/fix-style-path-alias.md b/.changeset/fix-style-path-alias.md new file mode 100644 index 000000000000..2eb144eed5ba --- /dev/null +++ b/.changeset/fix-style-path-alias.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix ` diff --git a/packages/astro/test/fixtures/alias-path-alias-style/src/pages/index.astro b/packages/astro/test/fixtures/alias-path-alias-style/src/pages/index.astro new file mode 100644 index 000000000000..cd166e49bc06 --- /dev/null +++ b/packages/astro/test/fixtures/alias-path-alias-style/src/pages/index.astro @@ -0,0 +1,10 @@ +--- +import StyledComponent from '@/components/StyledComponent.astro'; +--- + + Path Alias Style Test + +

Path Alias Style Test

+ + + diff --git a/packages/astro/test/fixtures/alias-path-alias-style/tsconfig.json b/packages/astro/test/fixtures/alias-path-alias-style/tsconfig.json new file mode 100644 index 000000000000..4b1deef74fb9 --- /dev/null +++ b/packages/astro/test/fixtures/alias-path-alias-style/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + }, + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6c90b12aec6a..164d43d148c7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1896,6 +1896,12 @@ importers: specifier: ^5.53.6 version: 5.53.8 + packages/astro/test/fixtures/alias-path-alias-style: + dependencies: + astro: + specifier: workspace:* + version: link:../../.. + packages/astro/test/fixtures/alias-tsconfig: dependencies: '@astrojs/svelte':