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

v3.8.0 up to v4.5.1 breaks: import * as [name] from '[alias]' #418

Open
3 tasks done
jaswrks opened this issue Mar 2, 2025 · 1 comment
Open
3 tasks done

v3.8.0 up to v4.5.1 breaks: import * as [name] from '[alias]' #418

jaswrks opened this issue Mar 2, 2025 · 1 comment

Comments

@jaswrks
Copy link

jaswrks commented Mar 2, 2025

Describe the bug

In tsconfig.json:

"paths": {
            "#^*": ["../*"],
            "#@*": ["./resources/*"],
            "#*": ["./*"]
        }

In v3.7.3, this works properly.

import * as $standalone from '#@standalone/index.ts';

It properly becomes:

import * as $standalone from './resources/standalone/index.ts';

In v3.8.0 ... tested up to v4.5.1, it is no longer transformed. Instead, I end up with the following, despite the same alias working in other imports that don't use import * as syntax.

import * as $standalone from '#@standalone/index.ts';

Reverting to v3.7.3 fixes the issue.

Reproduction

n/a

Steps to reproduce

No response

System Info

n/a

Validations

@qmhc
Copy link
Owner

qmhc commented Mar 3, 2025

Would you provide a reproduction for this issue?

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

2 participants