Skip to content

Bug in transpileModule in ts 2.9.1 #24729

@arackaf

Description

@arackaf

Please try to reproduce the issue with typescript@next. It may have already been fixed.

TypeScript Version: 3.0.0-dev.20180606 - still fails

Search terms you tried before logging this (so others can find this issue more easily)

transpileModule, 2.9.1

Code

No publicly available repro

This issue was originally raised here

TypeStrong/ts-loader#787 (comment)

until it was realized this was a bug with TS itself. It seems transpileModule is dropping valid, needed imports, which is creating runtime errors

Expected behavior:

Used imports will not be dropped

Actual behavior:

They're dropped

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions