{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/builder/issues/271","labels_url":"https://api.github.com/repos/systemjs/builder/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/builder/issues/271/comments","events_url":"https://api.github.com/repos/systemjs/builder/issues/271/events","html_url":"https://github.com/systemjs/builder/issues/271","id":100054585,"number":271,"title":"Forcing format of an \"empty\" module","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-10T12:45:57Z","updated_at":"2015-08-10T14:03:02Z","closed_at":"2015-08-10T13:53:25Z","body":"I'm bumping into a corner case that gives me a bit of headache: in Angular2 we've got a [file](https://github.com/angular/angular/blob/master/modules/angular2/src/router/route_definition.ts) that has only TypeScript interfaces export. Such file, when transpiled to ES6 comes out empty (rightly so). Now, the problem is that when such an empty file is bundled with other files (it gets bundled since there are references to interfaces from other files) systemjs/builder auto-detect the empty file as \"global\".\r\n\r\nIs there is a way of letting systemjs/builder know that such file is really using \"es6\" format? I was trying to do:\r\n\r\n```javascript\r\nvar bundleConfig = {\r\n  paths: {\r\n    \"*\": \"dist/js/prod/es6/*.js\"   \r\n  },\r\n  meta: {\r\n    '*': {\r\n      format: 'es6'\r\n    }\r\n};\r\n```\r\n\r\nbut it doesn't seem to have much effect (that is - auto-detection still kicks in). \r\n\r\nAny advice here? "},"comment":{"url":"https://api.github.com/repos/systemjs/builder/issues/comments/129465646","html_url":"https://github.com/systemjs/builder/issues/271#issuecomment-129465646","issue_url":"https://api.github.com/repos/systemjs/builder/issues/271","id":129465646,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T14:03:02Z","updated_at":"2015-08-10T14:03:02Z","body":"Sure! Just ping me if you need any help at all with the upgrade."}}