Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For es6 targets, created import statements should now have the .js postfix #5460

Closed
iislucas opened this issue Oct 29, 2015 · 2 comments
Closed
Labels
Question An issue which isn't directly actionable in code

Comments

@iislucas
Copy link

According to google/traceur-compiler#1997 is seems that es6 requires that import statements are fully resolved to concrete filename. It seems that omitting the .js postfix is no longer supported. So it seems that typescript compiler, for a es6 target, should be emitting import statements in the code that have the fully resolved js filename (i.e. postfix should now include .js in the output file).

@mhegazy
Copy link
Contributor

mhegazy commented Oct 30, 2015

This is not really ES6, this is the module loader spec. the spec is still WIP. we are aware of these changes and we are keeping an eye out. once the spec has progressed in the standardization process we will put the changes in the emitted JS code.

@mhegazy
Copy link
Contributor

mhegazy commented Nov 13, 2015

handling this is tracked by #4595

@mhegazy mhegazy closed this as completed Nov 13, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

2 participants