Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: infer aliases from tsconfig.json #494

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

kricsleo
Copy link
Contributor

@kricsleo kricsleo commented Jan 25, 2025

resolves #489
resolves #428
resolves #289

@kricsleo kricsleo marked this pull request as draft January 25, 2025 16:08
@@ -15,6 +23,7 @@ export const DEFAULT_EXTENSIONS: string[] = [

export function resolveAliases(ctx: BuildContext): Record<string, string> {
const aliases: Record<string, string> = {
...inferAliasesFromTsconfig(ctx),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be opt-in

findConfigFile,
readConfigFile,
parseJsonConfigFileContent,
} from "typescript";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid loading typescript package as it adds runtime overhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants