-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tsconfig alias regression (#6617)
- Loading branch information
1 parent
b37b865
commit 38e6ec2
Showing
5 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Fix tsconfig alias regression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 18 additions & 14 deletions
32
packages/astro/test/fixtures/alias-tsconfig/src/pages/index.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
--- | ||
import Client from '@components/Client.svelte' | ||
import Client from '@components/Client.svelte'; | ||
import Foo from 'src/components/Foo.astro'; | ||
import StyleComp from 'src/components/Style.astro'; | ||
import '@styles/main.css' | ||
import '@styles/main.css'; | ||
import { whoImI } from 'src/ts-file'; | ||
const mistery = whoImI(); | ||
--- | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>Aliases using tsconfig</title> | ||
</head> | ||
<body> | ||
<main> | ||
<Client client:load /> | ||
<Foo /> | ||
<StyleComp /> | ||
</main> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>Aliases using tsconfig</title> | ||
</head> | ||
<body> | ||
<main> | ||
<Client client:load /> | ||
<Foo /> | ||
<StyleComp /> | ||
<div id="mistery">{mistery}</div> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function whoImI() { | ||
return "I'm a TypeScript file!"; | ||
} |