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

The names of classes exported from TypeScript namespaces start with _ starting at v0.18.4 #3199

Closed
dasa opened this issue Jun 28, 2023 · 0 comments

Comments

@dasa
Copy link

dasa commented Jun 28, 2023

Repro: https://esbuild.github.io/try/#dAAwLjE4LjQAewogIGxvYWRlcjogInRzIiwKICBrZWVwTmFtZXM6IHRydWUsCiAgdGFyZ2V0OiAiZXMyMDIxIiwKfQBjbGFzcyBYIHt9CgpuYW1lc3BhY2UgWCB7CiAgZXhwb3J0IGNsYXNzIFkge30KfQoKY29uc29sZS5sb2coWC5ZKQ

Test code:

class X {}

namespace X {
  export class Y {}
}

console.log(X.Y)

Starting at 0.18.4, this will log undefined.

@evanw evanw closed this as completed in cd23ee5 Jul 1, 2023
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

1 participant