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

Using # as an alias does not work #106

Open
2 tasks
alwyntan opened this issue Jan 8, 2025 · 0 comments
Open
2 tasks

Using # as an alias does not work #106

alwyntan opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@alwyntan
Copy link

alwyntan commented Jan 8, 2025

Problem

tsconfig paths are supported now #48 , but using # as an alias does not work, but other symbols like @ or $ works.

To reproduce, setup aliases in tsconfig to use # as an alias, like the following:

// tsconfig.json
{
    "baseUrl": "./",
    "paths": {
        "#/*": ["src/*"]
    }
}
// src/index.ts
{
    import { foo } from '#/foo'
    foo()
}
// src/foo.ts
{
    export const foo = () => console.log('foo')
}

Expected behavior

Aliased imports defined in tsconfig should work.

Change all instances of # with @ and pkgroll will run as expected.

Minimal reproduction URL

https://github.com/alwyntan/pkgroll-path-bug

Version

v2.6.1

Node.js version

v23.6.0

Package manager

pnpm

Operating system

macOS

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support
@alwyntan alwyntan added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant