TypeScript

Path aliases at runtime

Në shqip: Alias-et e rrugëve gjatë ekzekutimit

ShpjegimiSQ

"paths" te tsconfig (p.sh. "@/*") e ndihmojnë vetëm TypeScript-in të gjejë skedarët. Node-i s'i njeh — duhet t'i konfigurosh edhe te bundler-i (Vite, Next) ose me "imports" te package.json.

EnglishEN

"paths" in tsconfig (e.g. "@/*") only help TypeScript find files. Node doesn't know about them — you must also configure them in the bundler (Vite, Next) or with "imports" in package.json.

Si ta mendosh

Si një shkurtore në hartën tënde që shoferi i taksisë s'e njeh.

Lexoje në anglisht

Like a shortcut on your map that the taxi driver doesn't know.

Shembull kodijson

// package.json
"imports": { "#lib/*": "./src/lib/*.js" }

Terma të lidhur