Skip to content

ES6 imports not emitted in declaration files #2220

Closed
@csnover

Description

@csnover

Source:

// foo.ts
var foo = {};
export = foo;
// bar.ts
import foo from './foo';
export = foo;

Command line: tsc -m amd -t es5 -d foo.ts bar.ts

Expected output of bar.d.ts:

import foo from './foo';
export = foo;

Actual output of bar.d.ts:

export = foo;

Legacy import foo = require('./foo') still is emitted.

Version: Arnavion/typescript-github#2015-03-05-b784a4212aeb5a4e42a598a8613a0538ac241123

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