Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsconfig.json paths #69

Open
couellet opened this issue Sep 18, 2018 · 2 comments
Open

tsconfig.json paths #69

couellet opened this issue Sep 18, 2018 · 2 comments

Comments

@couellet
Copy link

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?

@silkimen
Copy link

silkimen commented Nov 8, 2018

Having the same issue.

@DavidPeicho
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants