CMSZ94 downloadsRead tsconfig.json compilerOptions.paths and resolve @/… style image paths in real time so images render in Obsidian.
Resolve @/… style path-alias image references (from tsconfig.json compilerOptions.paths) in real time, so images render in Obsidian reading view and live preview — without modifying your notes on disk.
Astro / Vite projects (e.g. Astro Paper) reference images with aliases like . Obsidian does not understand the @ alias, so the image shows as "file not found". This plugin reads the vault's tsconfig.json and rewrites those paths at render time.
compilerOptions.paths from the vault-root tsconfig.json (e.g. { "@/*": ["./src/*"] } → @/ → src/).<img> elements and Obsidian internal-embed placeholders in real time (markdown post-processor + MutationObserver), in both reading view and live preview.tsconfig.json changes; also provides a "Reload tsconfig aliases" command.main.js and manifest.json into <your-vault>/.obsidian/plugins/tsconfig-alias/.npm install
npm run build # bundles src/main.ts and outputs main.js to the repo root
npm run dev starts esbuild in watch mode (output goes to the repo root).
tsconfig.json at the vault root with compilerOptions.pathsMIT