-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionDomain: ES ModulesThe issue relates to import/export style module behaviorThe issue relates to import/export style module behaviorSuggestionAn idea for TypeScriptAn idea for TypeScript
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 output
import { ModalBackground } from './ModalBackground.js';
That way I can use the output in Chrome 51
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Webpack boilerplate</title>
<script type="module" src="index.js"></script>
</head>
<body></body>
</html>
Related to #13422
tkrotoff, fantaclaus, MaximeKjaer, Pauan, danikkks and 260 morequantuminformation, avtomon, SalathielGenese, motss, Sunsetra and 7 moredemurgos, avtomon, SalathielGenese, motss, aalexgabi and 2 morerdhainaut, svr93, dubzzz, LostInBrittany, FrancescoBorzi and 21 morekirillgroshkov, Tanja-4732, csvn, PauliusSasnauskas and emilio-martinezbrainkim, wenfangdu, SalathielGenese, jomarcardoso, asdux and 7 more
Metadata
Metadata
Assignees
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionDomain: ES ModulesThe issue relates to import/export style module behaviorThe issue relates to import/export style module behaviorSuggestionAn idea for TypeScriptAn idea for TypeScript