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

Rename ".tsx" to ".jsx" in import statements #7012

Closed
tomitrescak opened this issue Feb 10, 2016 · 3 comments
Closed

Rename ".tsx" to ".jsx" in import statements #7012

tomitrescak opened this issue Feb 10, 2016 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@tomitrescak
Copy link

Hi, when I compile a ts file which contains following imports

import Navigations from './navigations.tsx';

it outputs exactly the same line

import Navigations from './navigations.tsx';

This breaks the code in the browser. I would expect that "tsx" import will be renamed to "jsx"

import Navigations from './navigations.jsx';

Is this somehow achievable?
Thanks

PS: I am using meteor, not webpack, which does not resolve imports like import Navigations from './navigations';

@vladima
Copy link
Contributor

vladima commented Feb 11, 2016

shouldn't it be the issue for meteor to resolve module names without extensions?

@tomitrescak
Copy link
Author

Unfortunatelly it is not the case. Only ".js" files are resolved without extension, ".jsx" gets left behind.

@mhegazy
Copy link
Contributor

mhegazy commented Feb 12, 2016

looks like a duplicate of #4595

@mhegazy mhegazy added the Duplicate An existing issue was already created label Feb 12, 2016
@mhegazy mhegazy closed this as completed Feb 12, 2016
@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
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants