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

Request: Support Closure-style module syntax #2244

Closed
zzo opened this issue Mar 7, 2015 · 3 comments
Closed

Request: Support Closure-style module syntax #2244

zzo opened this issue Mar 7, 2015 · 3 comments
Labels
Declined The issue was declined as something which matches the TypeScript vision Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript

Comments

@zzo
Copy link

zzo commented Mar 7, 2015

In addition to 'commonjs' and 'requirejs'-style module output styles please also support Closure library-style module syntax during transpilation.

http://docs.closure-library.googlecode.com/git/namespace_goog_module.html
https://plus.sandbox.google.com/+JohnLenzGoogle/posts/gZ7w2w5HQDk
https://docs.google.com/document/d/1SwVn2ajodVsAauhJoHOyQgr87bMzaK13ke2CpGorbUY/edit

@mhegazy mhegazy added the Suggestion An idea for TypeScript label Mar 7, 2015
@NoelAbrahams
Copy link

This has also been discussed in the context of minification #8

@mhegazy
Copy link
Contributor

mhegazy commented Dec 9, 2015

looks like https://github.com/angular/sickle should do the trick.

@mhegazy
Copy link
Contributor

mhegazy commented Dec 9, 2015

Closure has more to it than the module system, e.g. property declarations, type annotations, casting, etc.. Closure is supporting ES6 modules, so invoking the TS compiler with --target ES6, along with a tool like sickle should be the solution.

@mhegazy mhegazy closed this as completed Dec 9, 2015
@mhegazy mhegazy added Declined The issue was declined as something which matches the TypeScript vision Out of Scope This idea sits outside of the TypeScript language design constraints labels Dec 9, 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
Declined The issue was declined as something which matches the TypeScript vision Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants