{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2939","labels_url":"https://api.github.com/repos/babel/babel/issues/2939/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2939/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2939/events","html_url":"https://github.com/babel/babel/issues/2939","id":115915397,"number":2939,"title":"Strict option on module transformers generates inconsistent code","user":{"login":"sorgloomer","id":5985835,"avatar_url":"https://avatars.githubusercontent.com/u/5985835?v=3","gravatar_id":"","url":"https://api.github.com/users/sorgloomer","html_url":"https://github.com/sorgloomer","followers_url":"https://api.github.com/users/sorgloomer/followers","following_url":"https://api.github.com/users/sorgloomer/following{/other_user}","gists_url":"https://api.github.com/users/sorgloomer/gists{/gist_id}","starred_url":"https://api.github.com/users/sorgloomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorgloomer/subscriptions","organizations_url":"https://api.github.com/users/sorgloomer/orgs","repos_url":"https://api.github.com/users/sorgloomer/repos","events_url":"https://api.github.com/users/sorgloomer/events{/privacy}","received_events_url":"https://api.github.com/users/sorgloomer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-09T16:40:22Z","updated_at":"2015-11-09T16:40:22Z","closed_at":null,"body":"It looks like the strict option has multiple meanings on module transformers in `babe-core 6.1.2`.\r\nFirst is related to `\"use strict\";` insertion, and the second is related to `__esModule`.\r\n\r\nSwitching strict to true adds `\"use strict\";` to the beginning, and removes the code that adds the `__esModule` marking to exports, but the `_interopRequireDefault` part stays, making the modules generated this way incompatible with themselves.\r\n\r\nGist: https://gist.github.com/sorgloomer/f86be2e62e2438a2ea72\r\n"}}