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

TypeScript-only modules (i.e. Deno modules) produce errors with TypeScript-specific syntax. #417

Open
pauliesnug opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working dts

Comments

@pauliesnug
Copy link

pauliesnug commented Jul 9, 2024

Environment

I'm using [email protected] and the latest stable version of unbuild.

Reproduction

  1. Create an unbuild repository, with ESNext target and module.
  2. Use pnpm dlx jsr add @std/encoding (or any other Deno module)
  3. Import the library in index.ts, and try to build.
  4. See Unexpected token error.

Describe the bug

When using a TypeScript module in an unbuild module, the compiler gets confused and doesn't understand the Typescript-specific syntax (e.g.type foo = ... and const bar: foo = {}).

Additional context

No response

Logs

No response

@pauliesnug pauliesnug added the bug Something isn't working label Jul 9, 2024
@pi0 pi0 added the dts label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dts
Projects
None yet
Development

No branches or pull requests

2 participants