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

Complete support for ES6 modules #2197

Merged
merged 20 commits into from
Mar 7, 2015
Merged

Complete support for ES6 modules #2197

merged 20 commits into from
Mar 7, 2015

Conversation

ahejlsberg
Copy link
Member

This PR completes support for ES6 modules (started in #1983). It adds support for export default class and export default function declarations and implements a common model for ES6 modules and TypeScript external modules.

Export assignments are now equivalent to export of member named "default"
Export assignments and exports defaults collected by binder
Export * declarations collected by binder
Simplified logic for marking import symbols as referenced
Removed "location" parameter from resolveEntityName
Improved error position reporting in resolveEntityName
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/contextualTyping.js.map
	tests/baselines/reference/contextualTyping.sourcemap.txt
	tests/baselines/reference/out-flag.js.map
	tests/baselines/reference/properties.js.map
	tests/baselines/reference/recursiveClassReferenceTest.js.map
	tests/baselines/reference/sourceMap-FileWithComments.js.map
	tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt
	tests/baselines/reference/typeResolution.js.map
Conflicts:
	tests/baselines/reference/exportAssignDottedName.errors.txt
ahejlsberg added a commit that referenced this pull request Mar 7, 2015
Complete support for ES6 modules
@ahejlsberg ahejlsberg merged commit 865f67e into master Mar 7, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants