{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8111","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8111/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8111/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8111/events","html_url":"https://github.com/babel/babel/issues/8111","id":329091270,"node_id":"MDU6SXNzdWUzMjkwOTEyNzA=","number":8111,"title":"ES7 Promise Finally on Microsoft Internet Explorer 11 and Microsoft Edge ","user":{"login":"HyP3r-","id":8094242,"node_id":"MDQ6VXNlcjgwOTQyNDI=","avatar_url":"https://avatars0.githubusercontent.com/u/8094242?v=4","gravatar_id":"","url":"https://api.github.com/users/HyP3r-","html_url":"https://github.com/HyP3r-","followers_url":"https://api.github.com/users/HyP3r-/followers","following_url":"https://api.github.com/users/HyP3r-/following{/other_user}","gists_url":"https://api.github.com/users/HyP3r-/gists{/gist_id}","starred_url":"https://api.github.com/users/HyP3r-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyP3r-/subscriptions","organizations_url":"https://api.github.com/users/HyP3r-/orgs","repos_url":"https://api.github.com/users/HyP3r-/repos","events_url":"https://api.github.com/users/HyP3r-/events{/privacy}","received_events_url":"https://api.github.com/users/HyP3r-/received_events","type":"User","site_admin":false},"labels":[{"id":725181332,"node_id":"MDU6TGFiZWw3MjUxODEzMzI=","url":"https://api.github.com/repos/babel/babel/labels/pkg:%20polyfill","name":"pkg: polyfill","color":"c2e0c6","default":false},{"id":711879390,"node_id":"MDU6TGFiZWw3MTE4NzkzOTA=","url":"https://api.github.com/repos/babel/babel/labels/pkg:%20preset-env","name":"pkg: preset-env","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-04T14:55:31Z","updated_at":"2018-07-31T06:54:43Z","closed_at":null,"author_association":"NONE","body":"## Bug Report\r\n\r\n**Current Behavior**\r\nWe want to support Microsoft Internet Explorer 11 and Microsoft Edge in out Project. In our Project we have used the ECMAScript 7 feature of [Promise Finally ](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally) a lot of times. In a talk with @existentialism he told me to use this little trick to make this thing working:\r\n\r\n1. Create a new File (e.g. polyfill.js):\r\n```js\r\nimport \"babel-polyfill\";\r\nimport \"core-js/modules/es7.promise.finally\";\r\n```\r\n2. Update the webpack.config.js entry Points:\r\n```js\r\nentry: {\r\n    app: [\r\n        \"./frontend/pages/polyfill\",\r\n        \"./frontend/pages/index\"\r\n    ],\r\n}\r\n```\r\n\r\n**Expected behavior/code**\r\nThis solution is working for Microsoft Internet Explorer 11 pretty good but does not work for Microsoft Edge:\r\n```\r\nUnhandled promise rejection TypeError: Object doesn't support property or method 'finally'\r\n```\r\nHow can I solve this problem?\r\n\r\n**Babel Configuration (.babelrc, package.json, cli command)**\r\n\r\n```js\r\nmodule: {\r\n    rules: [\r\n        {\r\n            test: /\\.js$/,\r\n            include: path.join(__dirname, \"frontend\"),\r\n            exclude: /(node_modules|bower_components)/,\r\n            use: [\r\n                {\r\n                    \"loader\": \"babel-loader\",\r\n                    \"options\": {\r\n                        \"cacheDirectory\": true,\r\n                        \"metadataSubscribers\": [ReactIntlPlugin.metadataContextFunctionName],\r\n                        \"plugins\": [\r\n                            \"lodash\",\r\n                            \"react-bootstrap\",\r\n                            \"recharts\",\r\n                            \"transform-runtime\",\r\n                            [\"react-intl\", {\"enforceDescriptions\": false}],\r\n                        ],\r\n                        presets: [\r\n                            [\"react\"],\r\n                            [\"env\", {\r\n                                \"useBuiltIns\": \"entry\",\r\n                                \"targets\": {\r\n                                    \"browsers\": [\r\n                                        \"chrome >= 61\",\r\n                                        \"edge >= 15\",\r\n                                        \"firefox >= 52\",\r\n                                        \"ie >= 11\",\r\n                                    ]\r\n                                }\r\n                            }]\r\n                        ]\r\n                    }\r\n                },\r\n            ]\r\n        }\r\n}\r\n```\r\n\r\n**Environment**\r\n- Babel version(s): babel-core ^6.24.1, babel-loader ^7.0.0, babel-plugin-lodash ^3.3.2, babel-plugin-react-bootstrap ^0.0.2, babel-plugin-react-intl ^2.3.1, babel-plugin-recharts ^1.1.1, babel-plugin-transform-runtime ^6.23.0, babel-polyfill ^6.24.1, babel-preset-env ^1.6.1, babel-preset-react ^6.24.1\r\n- Node/npm version: Node 6.11.2/npm 3.10.10\r\n- OS: Windows 10\r\n- Monorepo: yes\r\n- How you are using Babel: loader\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/409115316","html_url":"https://github.com/babel/babel/issues/8111#issuecomment-409115316","issue_url":"https://api.github.com/repos/babel/babel/issues/8111","id":409115316,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTExNTMxNg==","user":{"login":"xtuc","id":1493671,"node_id":"MDQ6VXNlcjE0OTM2NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1493671?v=4","gravatar_id":"","url":"https://api.github.com/users/xtuc","html_url":"https://github.com/xtuc","followers_url":"https://api.github.com/users/xtuc/followers","following_url":"https://api.github.com/users/xtuc/following{/other_user}","gists_url":"https://api.github.com/users/xtuc/gists{/gist_id}","starred_url":"https://api.github.com/users/xtuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtuc/subscriptions","organizations_url":"https://api.github.com/users/xtuc/orgs","repos_url":"https://api.github.com/users/xtuc/repos","events_url":"https://api.github.com/users/xtuc/events{/privacy}","received_events_url":"https://api.github.com/users/xtuc/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T06:54:43Z","updated_at":"2018-07-31T06:54:43Z","author_association":"MEMBER","body":"Maybe @zloirock would have any input on this?"}}
{"actor":{"display_login":"xtuc"}}