{"action":"closed","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2876","labels_url":"https://api.github.com/repos/babel/babel/issues/2876/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2876/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2876/events","html_url":"https://github.com/babel/babel/issues/2876","id":115559674,"number":2876,"title":"Babel 6 seems to ignore Presets","user":{"login":"resistdesign","id":356375,"avatar_url":"https://avatars.githubusercontent.com/u/356375?v=3","gravatar_id":"","url":"https://api.github.com/users/resistdesign","html_url":"https://github.com/resistdesign","followers_url":"https://api.github.com/users/resistdesign/followers","following_url":"https://api.github.com/users/resistdesign/following{/other_user}","gists_url":"https://api.github.com/users/resistdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/resistdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resistdesign/subscriptions","organizations_url":"https://api.github.com/users/resistdesign/orgs","repos_url":"https://api.github.com/users/resistdesign/repos","events_url":"https://api.github.com/users/resistdesign/events{/privacy}","received_events_url":"https://api.github.com/users/resistdesign/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-06T18:20:06Z","updated_at":"2015-11-06T18:25:23Z","closed_at":"2015-11-06T18:25:23Z","body":"With this code:\r\n\r\n```\r\nrequire('babel-core/register')({\r\n    presets: [require('babel-preset-stage-0')]\r\n});\r\n\r\n// Tests:\r\nrequire('./validation');\r\n```\r\n\r\nAnd these deps:\r\n\r\n```\r\n  \"devDependencies\": {\r\n    \"babel-core\": \"^6.1.2\",\r\n    \"babel-preset-stage-0\": \"^6.1.2\"\r\n  }\r\n```\r\n\r\nI get this error:\r\n\r\n```\r\n...tests/validation.js:1\r\n(function (exports, require, module, __filename, __dirname) { import { Decorators, Types } from '../index';\r\n                                                              ^^^^^^\r\n\r\nSyntaxError: Unexpected reserved word\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:414:25)...\r\n```\r\n\r\nIt's as if it's not even trying to transpile it or something."}}