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
Some background would be appreciated like what was TS team thinking when they designed this?
As this feels like going against a well known pattern/convention.
You have a default export and a default import here. If that's not working (foo() rather than foo.default()), then some other tool in your build/run pipeline is broken. TypeScript definitely emits the correct code for this.
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
Code
Given
foo.ts
transpiles to
foo.js
asWhy is that? Since consumers of my lib are used to
But now they need to
Expected behavior:
Shouldn't it transpile to
Similar to what we see around most libs.
The text was updated successfully, but these errors were encountered: