Closed UchihaYuki closed 1 month ago
"tsc-alias": {
"replacers": {
"default": {
"enabled": false
},
"base-url": {
"enabled": false
},
"mine": {
"enabled": true,
"file": "./tsc-alias-replacer.cjs"
}
}
}
I solved it!
I found even if I define my own replacer, the imports have already been transformed by some built-in replacers.
The main problem I want to resolve:
I found
tsc-alias
not work as I expected, for example:will become
Although I only define the following in tsconfig.json:
I hope it can only replace modules starting with
src/
ortest/
.