Skip to content

esModuleInterop doesn't affect reexports #39464

Closed
@wojpawlik

Description

@wojpawlik

TypeScript Version: 4.0.0-dev.20200707

Search Terms:

esmoduleinterop reexport

Code

https://gist.github.com/b48d1791d83ff67581238190eb583f67

Expected behavior:

lib/index.js exports require('./answer') (42)

Actual behavior:

lib/index.js exports require('./answer').default (undefined)

Metadata

Metadata

Assignees

Labels

FixedA PR has been merged for this issueHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-reprosRescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions