{"action":"created","issue":{"url":"https://api.github.com/repos/flaviait/ng2-jspm-template/issues/33","repository_url":"https://api.github.com/repos/flaviait/ng2-jspm-template","labels_url":"https://api.github.com/repos/flaviait/ng2-jspm-template/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/flaviait/ng2-jspm-template/issues/33/comments","events_url":"https://api.github.com/repos/flaviait/ng2-jspm-template/issues/33/events","html_url":"https://github.com/flaviait/ng2-jspm-template/issues/33","id":176631289,"number":33,"title":"Bundling with mangle Breaks","user":{"login":"jscherbaum","id":22172262,"avatar_url":"https://avatars.githubusercontent.com/u/22172262?v=3","gravatar_id":"","url":"https://api.github.com/users/jscherbaum","html_url":"https://github.com/jscherbaum","followers_url":"https://api.github.com/users/jscherbaum/followers","following_url":"https://api.github.com/users/jscherbaum/following{/other_user}","gists_url":"https://api.github.com/users/jscherbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/jscherbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscherbaum/subscriptions","organizations_url":"https://api.github.com/users/jscherbaum/orgs","repos_url":"https://api.github.com/users/jscherbaum/repos","events_url":"https://api.github.com/users/jscherbaum/events{/privacy}","received_events_url":"https://api.github.com/users/jscherbaum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-13T12:48:09Z","updated_at":"2016-09-14T15:27:33Z","closed_at":null,"body":"I've used this Jspm Template with Angular2.RC5 and Angular2 Material Design 2.0.0-alpha.7-4 and it works fine for the development Mode, but if i deploy the Project in Production Mode with a mangled bundle, this bundle breaks.\r\n\r\nThe Bundled Application throws errors like this:\r\n\r\n`Can't bind to 'value' since it isn't a known property of 'md-radio-button'.`\r\n\r\nI've found a similar Bug on the angular Repo:\r\nhttps://github.com/angular/angular/issues/10618\r\n\r\nI think the Problem lays inside Angular2 itself.\r\n\r\nTo solve this issue for me i've set mangle to false in the following line in package.json:\r\n\r\n`\"dist-bundle\": \"rimraf dist/bundle.js && npm run translations && jspm build src/main dist/bundle.js --minify --no-mangle --format global --global-name APP --config jspm.dist-bundle.json --log ok && cp src/index.html dist\",`"},"comment":{"url":"https://api.github.com/repos/flaviait/ng2-jspm-template/issues/comments/247051622","html_url":"https://github.com/flaviait/ng2-jspm-template/issues/33#issuecomment-247051622","issue_url":"https://api.github.com/repos/flaviait/ng2-jspm-template/issues/33","id":247051622,"user":{"login":"DorianGrey","id":1473055,"avatar_url":"https://avatars.githubusercontent.com/u/1473055?v=3","gravatar_id":"","url":"https://api.github.com/users/DorianGrey","html_url":"https://github.com/DorianGrey","followers_url":"https://api.github.com/users/DorianGrey/followers","following_url":"https://api.github.com/users/DorianGrey/following{/other_user}","gists_url":"https://api.github.com/users/DorianGrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DorianGrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DorianGrey/subscriptions","organizations_url":"https://api.github.com/users/DorianGrey/orgs","repos_url":"https://api.github.com/users/DorianGrey/repos","events_url":"https://api.github.com/users/DorianGrey/events{/privacy}","received_events_url":"https://api.github.com/users/DorianGrey/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T15:27:33Z","updated_at":"2016-09-14T15:27:33Z","body":"Hm... I see. The publishing style has changed from RC.5 to RC.6, i.e. the basic modules are published in ESM format.\r\nWe already have several mapping like [this](https://github.com/flaviait/ng2-jspm-template/blob/master/jspm.config.js#L149) in `jspm.config.js`:\r\n```\r\nmap: {\r\n    '@angular/router/testing': 'npm:@angular/router@3.0.0-rc.2/bundles/router-testing.umd.js',\r\n   // ...\r\n}\r\n```\r\nThus, please try to add\r\n```\r\n'@angular2-material/sidenav': 'npm:@angular2-material/sidenav@2.0.0-alpha.8-1/sidenav.umd.js'\r\n```\r\nto the `map`-section. This should lead jspm to the UMD bundle, which should work properly here... I hope. You might need to add an entry for other material components accordingly.\r\n"}}
{"actor":{"display_login":"DorianGrey"}}