Closed phenomen closed 1 year ago
I use tsconfig paths for layouts, components, images and other shortcuts. But in Include directive it doesn't work and unable to resolve the path.
tsconfig.json
{ "extends": "astro/tsconfigs/base", "compilerOptions": { "baseUrl": "./", "paths": { "@gear": ["./src/data/gear/*"] } } }
page.mdx
::include[@gear/backpack.mdx]
I have hundreds of categories, pages, and products and using ./, ../, ../../, etc. is just unfeasible. It would be nice to be able to use shortcuts in include directives.
./
../
../../
I use tsconfig paths for layouts, components, images and other shortcuts. But in Include directive it doesn't work and unable to resolve the path.
tsconfig.json
page.mdx
I have hundreds of categories, pages, and products and using
./
,../
,../../
, etc. is just unfeasible. It would be nice to be able to use shortcuts in include directives.