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

Reconsider rewriting of files #86

Closed
lastmjs opened this issue Aug 4, 2017 · 2 comments
Closed

Reconsider rewriting of files #86

lastmjs opened this issue Aug 4, 2017 · 2 comments

Comments

@lastmjs
Copy link
Owner

lastmjs commented Aug 4, 2017

Apparently the browser really doesn't care about file extensions, only mine types. This means we should be able to allow any extension to be requested by the browser. The only issue seems to be the TypeScript extension that disallows any file extension besides js. If mjs goes through in Node, then I'm hoping the TypeScript plugin will change and allow others file extensions. This would greatly simplify rewriting of file extensions.

https://medium.com/webpack/the-state-of-javascript-modules-4636d1774358

https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types

@lastmjs
Copy link
Owner Author

lastmjs commented Aug 4, 2017

Follow these issues for more info:

microsoft/TypeScript#4595

microsoft/TypeScript#10939

angular/angular#14664

@lastmjs
Copy link
Owner Author

lastmjs commented Mar 20, 2018

I still hope that eventually the Atom and Visual Studio code plugins will allow .ts extensions, because providing explicit extensions will be so much better. Once explicit extensions are allowed, get rid of the implicit extension handling

@lastmjs lastmjs closed this as completed Dec 14, 2019
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