Skip to content

What does import with tilde (~) means? #733

Closed Answered by mcansh
robertwt7 asked this question in Q&A
Discussion options

You must be logged in to vote

the tilde is an alias for your ./app directory, in this case ~/posts maps to ./posts.{ts,tsx,js,jsx,cts,mts} or ./posts/index.{ts,tsx,js,jsx,cts,mts} in your app directory https://github.com/remix-run/remix/blob/main/packages/create-remix/templates/_shared_ts/tsconfig.json#L11-L13. We currently only support this path alias, but are looking into expanding it to any alias you configure in your jsconfig or tsconfig

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@robertwt7
Comment options

@silvenon
Comment options

@robertwt7
Comment options

Answer selected by machour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants