-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
When I run the tsc --build, or "tsc --watch" compiles for the first time, everything works fine and import paths are rewritten correctly.
However, if I change a file in tsc watch mode, it is recompiled and import pa paths are left as is, without being converted to relative.
I'm using tspc with persistent patch mode.
versions:
npx tsc --version
Version 5.1.3
"typescript-transform-paths": "^3.4.6",
"tspc": "^1.1.2",
tsconfig:
{
"compilerOptions": {
"module": "Node16",
"moduleResolution": "Node16",
"composite": true,
"preserveSymlinks": true,
"declaration": true,
"declarationMap": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"useDefineForClassFields": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./src",
"incremental": true,
"skipLibCheck": true,
"lib": [
"es2015.reflect",
"dom",
"ES6",
"ES2021.String"
],
"jsx": "react",
"paths": {
"@/*": ["./*"]
},
"plugins": [
// Transform paths in output .js files
{ "transform": "typescript-transform-paths" },
// Transform paths in output .d.ts files (Include this line if you output declarations files)
{ "transform": "typescript-transform-paths", "afterDeclarations": true }
]
},
"references": [
{
"path": "../common"
}
],
}
Ciborn and jsmnbom
Metadata
Metadata
Assignees
Labels
No labels