Bug Report
When using a single identifier to export three things (a type, a named export, and a default export) the default export is dropped from the emitted JS.
🔎 Search Terms
"default export" skipped dropped elided omitted forgotten "JS emit" type "named export" "JS+types"
🕗 Version & Regression Information
- This is the behavior in every version I tried
⏯ Playground Link
Playground link with relevant code
💻 Code
type X = number;
export const X = 1;
export default X;
The problem is equally replicable with interface and object types.
🙁 Actual behavior
JS semantics are not preserved in the JS emit:
🙂 Expected behavior
export const X = 1;
export default X;
Credit
This bug was discovered by ollupac
Bug Report
When using a single identifier to export three things (a type, a named export, and a default export) the default export is dropped from the emitted JS.
🔎 Search Terms
"default export" skipped dropped elided omitted forgotten "JS emit" type "named export" "JS+types"
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
The problem is equally replicable with
interfaceand object types.🙁 Actual behavior
JS semantics are not preserved in the JS emit:
🙂 Expected behavior
Credit
This bug was discovered by ollupac