{"action":"created","issue":{"url":"https://api.github.com/repos/59naga/babel-plugin-add-module-exports/issues/68","repository_url":"https://api.github.com/repos/59naga/babel-plugin-add-module-exports","labels_url":"https://api.github.com/repos/59naga/babel-plugin-add-module-exports/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/59naga/babel-plugin-add-module-exports/issues/68/comments","events_url":"https://api.github.com/repos/59naga/babel-plugin-add-module-exports/issues/68/events","html_url":"https://github.com/59naga/babel-plugin-add-module-exports/issues/68","id":363968038,"node_id":"MDU6SXNzdWUzNjM5NjgwMzg=","number":68,"title":"Does work with Babel v7?","user":{"login":"LeoIannacone","id":1774748,"node_id":"MDQ6VXNlcjE3NzQ3NDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1774748?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoIannacone","html_url":"https://github.com/LeoIannacone","followers_url":"https://api.github.com/users/LeoIannacone/followers","following_url":"https://api.github.com/users/LeoIannacone/following{/other_user}","gists_url":"https://api.github.com/users/LeoIannacone/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoIannacone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoIannacone/subscriptions","organizations_url":"https://api.github.com/users/LeoIannacone/orgs","repos_url":"https://api.github.com/users/LeoIannacone/repos","events_url":"https://api.github.com/users/LeoIannacone/events{/privacy}","received_events_url":"https://api.github.com/users/LeoIannacone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T10:49:32Z","updated_at":"2018-09-26T20:32:24Z","closed_at":null,"author_association":"NONE","body":"Hi, after updating to babel v7 (with `\"babel-plugin-add-module-exports\": \"^1.0.0\"`) I can't export anymore things like this:\r\n\r\n```\r\nconst foo = val => val.replace('0', 'whatever')\r\nexport default {\r\n  foo,\r\n}\r\n```\r\n\r\nI get this error:\r\n```\r\n\"export 'foo' was not found in '../../../../../your-file'\r\n```"},"comment":{"url":"https://api.github.com/repos/59naga/babel-plugin-add-module-exports/issues/comments/424859644","html_url":"https://github.com/59naga/babel-plugin-add-module-exports/issues/68#issuecomment-424859644","issue_url":"https://api.github.com/repos/59naga/babel-plugin-add-module-exports/issues/68","id":424859644,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDg1OTY0NA==","user":{"login":"59naga","id":1548478,"node_id":"MDQ6VXNlcjE1NDg0Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1548478?v=4","gravatar_id":"","url":"https://api.github.com/users/59naga","html_url":"https://github.com/59naga","followers_url":"https://api.github.com/users/59naga/followers","following_url":"https://api.github.com/users/59naga/following{/other_user}","gists_url":"https://api.github.com/users/59naga/gists{/gist_id}","starred_url":"https://api.github.com/users/59naga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/59naga/subscriptions","organizations_url":"https://api.github.com/users/59naga/orgs","repos_url":"https://api.github.com/users/59naga/repos","events_url":"https://api.github.com/users/59naga/events{/privacy}","received_events_url":"https://api.github.com/users/59naga/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T20:32:24Z","updated_at":"2018-09-26T20:32:24Z","author_association":"OWNER","body":"```json\r\n{\r\n  \"scripts\": {\r\n    \"build\": \"babel in.js --out-file out.js --presets=@babel/preset-env --plugins add-module-exports\"\r\n  },\r\n  \"dependencies\": {\r\n    \"@babel/cli\": \"^7.1.0\",\r\n    \"@babel/core\": \"^7.1.0\",\r\n    \"@babel/preset-env\": \"^7.1.0\",\r\n    \"babel-plugin-add-module-exports\": \"^1.0.0\"\r\n  }\r\n}\r\n```\r\n\r\n```bash\r\n```"}}
{"actor":{"display_login":"59naga"}}