{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2339","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2339/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2339/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2339/events","html_url":"https://github.com/webpack/webpack/issues/2339","id":148618749,"number":2339,"title":"ProvidePlugin can't provide function for TS `__awaiter` call","user":{"login":"sanex3339","id":9210534,"avatar_url":"https://avatars.githubusercontent.com/u/9210534?v=3","gravatar_id":"","url":"https://api.github.com/users/sanex3339","html_url":"https://github.com/sanex3339","followers_url":"https://api.github.com/users/sanex3339/followers","following_url":"https://api.github.com/users/sanex3339/following{/other_user}","gists_url":"https://api.github.com/users/sanex3339/gists{/gist_id}","starred_url":"https://api.github.com/users/sanex3339/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanex3339/subscriptions","organizations_url":"https://api.github.com/users/sanex3339/orgs","repos_url":"https://api.github.com/users/sanex3339/repos","events_url":"https://api.github.com/users/sanex3339/events{/privacy}","received_events_url":"https://api.github.com/users/sanex3339/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T10:08:35Z","updated_at":"2016-04-16T10:42:39Z","closed_at":null,"body":"Compiled code:\r\n\r\n```\r\n    /***/ 405:\r\n    /***/ function(module, exports, __webpack_require__) {\r\n\r\n\t/* WEBPACK VAR INJECTION */(function(__decorate, __metadata) {\"use strict\";\r\n\tconst core_1 = __webpack_require__(4);\r\n\tconst router_1 = __webpack_require__(367);\r\n\t__webpack_require__(121);\r\n\tlet RedirectService = class RedirectService {\r\n\t    constructor(router) {\r\n\t        this.router = router;\r\n\t    }\r\n\t    redirect(link, delay = 0) {\r\n\t        return __awaiter(this, void 0, Promise, function* () {\r\n\t            yield this.delay(delay);\r\n\t            this.router.navigate([link]);\r\n\t        });\r\n\t    }\r\n\t    delay(delay) {\r\n\t        return new Promise((resolve) => setTimeout(resolve, delay));\r\n\t    }\r\n\t};\r\n\tRedirectService = __decorate([\r\n\t    core_1.Injectable(), \r\n\t    __metadata('design:paramtypes', [router_1.Router])\r\n\t], RedirectService);\r\n\texports.RedirectService = RedirectService;\r\n\t\r\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2), __webpack_require__(3)))\r\n\r\n/***/ },\r\n\r\n```\r\n\r\nConfig:\r\n```\r\n plugins: [\r\n            new webpack.ProvidePlugin({\r\n                '__awaiter': 'typescript-awaiter',\r\n                '__decorate': 'typescript-decorate',\r\n                '__metadata': 'typescript-metadata'\r\n            })\r\n        ]\r\n```\r\n\r\nProblem: ProvidePlugin can't provide function for TS `__awaiter` call.\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/210787810","html_url":"https://github.com/webpack/webpack/issues/2339#issuecomment-210787810","issue_url":"https://api.github.com/repos/webpack/webpack/issues/2339","id":210787810,"user":{"login":"sanex3339","id":9210534,"avatar_url":"https://avatars.githubusercontent.com/u/9210534?v=3","gravatar_id":"","url":"https://api.github.com/users/sanex3339","html_url":"https://github.com/sanex3339","followers_url":"https://api.github.com/users/sanex3339/followers","following_url":"https://api.github.com/users/sanex3339/following{/other_user}","gists_url":"https://api.github.com/users/sanex3339/gists{/gist_id}","starred_url":"https://api.github.com/users/sanex3339/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanex3339/subscriptions","organizations_url":"https://api.github.com/users/sanex3339/orgs","repos_url":"https://api.github.com/users/sanex3339/repos","events_url":"https://api.github.com/users/sanex3339/events{/privacy}","received_events_url":"https://api.github.com/users/sanex3339/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T10:42:39Z","updated_at":"2016-04-16T10:42:39Z","body":"still looking for solution"}}