dts-bundle
dts-bundle copied to clipboard
tsconfig.json paths
Here's our tsconfig.json file:
{
"compilerOptions": {
"sourceMap": true,
"baseUrl": ".",
"declaration": true,
"paths": {
"@/*": [
"src/*"
]
},
"strictNullChecks": true
}
}
When I generate the bundle, the imports like this one are not working as expected:
import { initSDK } from '@/core';
Looks like dts-bundle doesn't parse our tsconfig.json file. Is there a way to do that?
Having the same issue.
You can use a transformer first. Basically, you use ts-transformer-imports to convert your imports into relative path, and then you apply DTS Bundle.