You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Garethp
changed the title
The way export const = gets compiled removes .name information when using commonjs
The way export const = gets compiled removes .name information when using commonjs
Aug 21, 2020
TypeScript Version: 4.0.2
Search Terms:
export const name
Code
a.ts
b.ts
tsconfig.json
Expected behavior:
b.name
is""
b.ts
should be compiled in a way that preserves the.name
ofb
. Maybe something like this?Actual behavior:
b.name
should be"b"
b.ts
is compiled intoPlayground Link: https://www.typescriptlang.org/play?target=99&jsx=0&module=1#code/KYDwDg9gTgLgBAYwgOwM7wEZwLxwBQCUOAfHAERkDcQA
The text was updated successfully, but these errors were encountered: