#Paths in tsconfig?

3 messages · Page 1 of 1 (latest)

crystal tinsel
#

Is it possible to use paths with solid?

I tried starting a new solid project and adding baseUrl and paths into tsconfig.json but it fails to resolve.

"baseUrl": ".", "paths": { "~/*": ["./src/*"] }

humble dove
#

you have to also update vite config

tall lagoon
#

Yes it is possible I use this plugin with vite that resolve all paths in my proyect, vite-tsconfig-paths