chan.dev / decisions

13. Use Node subpath imports over TypeScript aliases

Accepted

Context

I saw this tweet.

Kent’s great decision log for Epic Stack.

I don’t have to be convinced much to prefer node-native solutions here.

Decision

Replace all TypeScript path aliases (@comoponents) with Node subpath imports (#components) with node subpath imports.

Consequences

Duplicated configuration until Typescript fully supports the node config.