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

New idea #39

Closed
lastmjs opened this issue Jul 7, 2017 · 2 comments
Closed

New idea #39

lastmjs opened this issue Jul 7, 2017 · 2 comments

Comments

@lastmjs
Copy link
Owner

lastmjs commented Jul 7, 2017

We're getting close to es modules being supported in all major browsers. Once we drop support for SystemJS, we're going to have some issues. How do we know which files to transpile? How do we import .ts files if .ts extensions aren't allowed? A simple way to fix this is to allow .js files to contain ts. Perhaps put a simple directive at the top indicating the file should be transpiled. Then all files could be imported the same way, and only the files you indicate will be transpiled.

@lastmjs
Copy link
Owner Author

lastmjs commented Jul 20, 2017

Once the atom-typescript plugin allows .js files to have TS code inside, this should work awesomely...I really like this idea, just put a directive at the top. Then everything is JS...if you want TS, just put TS in your JS. Then everything will work as expected.

@lastmjs
Copy link
Owner Author

lastmjs commented Aug 3, 2017

Just transpiling all JS or TS files might work

@lastmjs lastmjs closed this as completed Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant