Skip to content

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

Description

@jaswrks

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions