dts-bundle icon indicating copy to clipboard operation
dts-bundle copied to clipboard

tsconfig.json paths

Open couellet opened this issue 7 years ago • 2 comments

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?

couellet avatar Sep 18 '18 15:09 couellet

Having the same issue.

silkimen avatar Nov 08 '18 00:11 silkimen

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.

DavidPeicho avatar May 09 '19 10:05 DavidPeicho