Provide a way to add the '.js' file extension to the end of module specifiers · Issue #16577 · microsoft/TypeScript (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
In order to use es6 modules in the browser, you need a .js file extension. However output doesn't add it.
In ts:import { ModalBackground } from './ModalBackground';
In ES2015 output:import { ModalBackground } from './ModalBackground';
Ideally I would like this to be outputimport { ModalBackground } from './ModalBackground.js';
That way I can use the output in Chrome 51
Webpack boilerplateRelated to #13422