{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/756","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/756/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/756/events","html_url":"https://github.com/systemjs/systemjs/issues/756","id":104621574,"number":756,"title":"problem with dots in filenames","user":{"login":"johnpapa","id":1202528,"avatar_url":"https://avatars.githubusercontent.com/u/1202528?v=3","gravatar_id":"","url":"https://api.github.com/users/johnpapa","html_url":"https://github.com/johnpapa","followers_url":"https://api.github.com/users/johnpapa/followers","following_url":"https://api.github.com/users/johnpapa/following{/other_user}","gists_url":"https://api.github.com/users/johnpapa/gists{/gist_id}","starred_url":"https://api.github.com/users/johnpapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnpapa/subscriptions","organizations_url":"https://api.github.com/users/johnpapa/orgs","repos_url":"https://api.github.com/users/johnpapa/repos","events_url":"https://api.github.com/users/johnpapa/events{/privacy}","received_events_url":"https://api.github.com/users/johnpapa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemjs/systemjs/labels/feature","name":"feature","color":"006b75"},{"url":"https://api.github.com/repos/systemjs/systemjs/labels/fixed%20pending%20release","name":"fixed pending release","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-03T04:53:07Z","updated_at":"2015-09-03T16:23:14Z","closed_at":null,"body":"The code below works fine for mapping all imported modules in y app folder to *.js. However, if the file name has a dot in it, it does not work. Appears to be a bug. Or is there a better way to solve it?\r\n\r\n```javascript\r\nSystem.config({\r\n  packages: {\r\n    'app': {\r\n      defaultExtension: 'js'\r\n    }\r\n  }\r\n});\r\n```\r\n\r\n`import {FooComponent} from './foo.component';` tries to load with no js extension, so it gets a 404. If I renamed to `./foo-component` then it works"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/137502427","html_url":"https://github.com/systemjs/systemjs/issues/756#issuecomment-137502427","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/756","id":137502427,"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-09-03T16:23:14Z","updated_at":"2015-09-03T16:23:14Z","body":"Ok I've managed to rework the package config to support the following:\r\n\r\n```javascript\r\nSystem.config({\r\n  packages: {\r\n    app: {\r\n      defaultExtension: 'js',\r\n      main: 'app.ts', // will load \"app.ts\"\r\n      meta: { '*.ts': { loader: 'typescript' } },\r\n      map: {\r\n        './x': './y' // will load \"./y.js\"\r\n      }\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nWhere `System.import('app/some.file')` will load `app/some.file.js`.\r\n\r\nThis is strictly a breaking change in SystemJS, so I'll have to post this out as a 0.19 shortly."}}