{"action":"created","issue":{"url":"https://api.github.com/repos/stoeffel/babel-plugin-array-includes/issues/1","labels_url":"https://api.github.com/repos/stoeffel/babel-plugin-array-includes/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/stoeffel/babel-plugin-array-includes/issues/1/comments","events_url":"https://api.github.com/repos/stoeffel/babel-plugin-array-includes/issues/1/events","html_url":"https://github.com/stoeffel/babel-plugin-array-includes/issues/1","id":114484704,"number":1,"title":"\"TypeError: Plugin is not a function\" with Babel 6","user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-01T18:32:33Z","updated_at":"2015-11-01T21:22:52Z","closed_at":null,"body":"I just tried using this plugin with Babel 6 and I got the following error:\r\n\r\n```\r\nModule build failed: TypeError: Plugin is not a function\r\n    at exports.default (/path/to/project/node_modules/babel-plugin-array-includes/lib/index.js:11:10)\r\n    at Function.memoisePluginContainer (/path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:117:13)\r\n    at Function.normalisePlugin (/path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:149:32)\r\n    at /path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:183:30\r\n    at Array.map (native)\r\n    at Function.normalisePlugins (/path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:161:20)\r\n    at OptionManager.mergeOptions (/path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:253:36)\r\n    at OptionManager.addConfig (/path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:205:10)\r\n    at OptionManager.findConfigs (/path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:346:16)\r\n    at OptionManager.init (/path/to/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:391:12)\r\n```\r\n\r\nI haven't tried using this plugin before, so I'm not sure if it is related to the new version or not."},"comment":{"url":"https://api.github.com/repos/stoeffel/babel-plugin-array-includes/issues/comments/152864921","html_url":"https://github.com/stoeffel/babel-plugin-array-includes/issues/1#issuecomment-152864921","issue_url":"https://api.github.com/repos/stoeffel/babel-plugin-array-includes/issues/1","id":152864921,"user":{"login":"stoeffel","id":1217681,"avatar_url":"https://avatars.githubusercontent.com/u/1217681?v=3","gravatar_id":"","url":"https://api.github.com/users/stoeffel","html_url":"https://github.com/stoeffel","followers_url":"https://api.github.com/users/stoeffel/followers","following_url":"https://api.github.com/users/stoeffel/following{/other_user}","gists_url":"https://api.github.com/users/stoeffel/gists{/gist_id}","starred_url":"https://api.github.com/users/stoeffel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoeffel/subscriptions","organizations_url":"https://api.github.com/users/stoeffel/orgs","repos_url":"https://api.github.com/users/stoeffel/repos","events_url":"https://api.github.com/users/stoeffel/events{/privacy}","received_events_url":"https://api.github.com/users/stoeffel/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T21:22:52Z","updated_at":"2015-11-01T21:22:52Z","body":"Didn't try babel 6 yet. I guess they changed the plugin api. Will have to check the changlog."}}