{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babelify/issues/109","labels_url":"https://api.github.com/repos/babel/babelify/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/babel/babelify/issues/109/comments","events_url":"https://api.github.com/repos/babel/babelify/issues/109/events","html_url":"https://github.com/babel/babelify/issues/109","id":101595642,"number":109,"title":"Experimental options doesn't work in React app.","user":{"login":"maratfakhreev","id":1300497,"avatar_url":"https://avatars.githubusercontent.com/u/1300497?v=3","gravatar_id":"","url":"https://api.github.com/users/maratfakhreev","html_url":"https://github.com/maratfakhreev","followers_url":"https://api.github.com/users/maratfakhreev/followers","following_url":"https://api.github.com/users/maratfakhreev/following{/other_user}","gists_url":"https://api.github.com/users/maratfakhreev/gists{/gist_id}","starred_url":"https://api.github.com/users/maratfakhreev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maratfakhreev/subscriptions","organizations_url":"https://api.github.com/users/maratfakhreev/orgs","repos_url":"https://api.github.com/users/maratfakhreev/repos","events_url":"https://api.github.com/users/maratfakhreev/events{/privacy}","received_events_url":"https://api.github.com/users/maratfakhreev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-18T07:58:21Z","updated_at":"2015-08-20T08:58:46Z","closed_at":null,"body":"Hi, I have some problems with experimental options for babelify. I'm trying to use `stage: 0` features in React app, but it brokes (same behavior with the `optional: ['es7.classProperties']`). The error:\r\n\r\n![screen shot 2015-08-18 at 10 53 01](https://cloud.githubusercontent.com/assets/1300497/9324980/b56c9ae8-4597-11e5-971e-d60b5329e803.png)\r\n\r\nMy browserify config:\r\n\r\n```javascript\r\nvar gulp = require('gulp');\r\nvar rename = require('gulp-rename');\r\nvar browserify = require('browserify');\r\nvar transform = require('vinyl-transform');\r\nvar babelify = require('babelify');\r\nvar watchify = require('watchify');\r\nvar notify = require('gulp-notify');\r\nvar config = require('../config');\r\nvar entryPoint = './' + config.appDir + '/scripts/application.jsx';\r\n\r\ngulp.task('browserify', function() {\r\n  var bundler = browserify({\r\n    cache: {},\r\n    packageCache: {},\r\n    fullPaths: true,\r\n    debug: true,\r\n    entries: entryPoint,\r\n    extensions: ['.jsx'],\r\n    paths: ['./' + config.appDir]\r\n  })\r\n  .transform(babelify.configure({\r\n    stage: 0\r\n  }));\r\n\r\n  function bundle() {\r\n    var bundleTransform = transform(function(filename) {\r\n      return bundler.bundle();\r\n    });\r\n\r\n    return gulp.src(entryPoint)\r\n      .pipe(bundleTransform)\r\n      .on('error', notify.onError())\r\n      .pipe(rename('application.js'))\r\n      .pipe(gulp.dest(config.publicDir))\r\n  };\r\n\r\n  watchify(bundler).on('update', bundle);\r\n\r\n  return bundle();\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babelify/issues/comments/132944014","html_url":"https://github.com/babel/babelify/issues/109#issuecomment-132944014","issue_url":"https://api.github.com/repos/babel/babelify/issues/109","id":132944014,"user":{"login":"maratfakhreev","id":1300497,"avatar_url":"https://avatars.githubusercontent.com/u/1300497?v=3","gravatar_id":"","url":"https://api.github.com/users/maratfakhreev","html_url":"https://github.com/maratfakhreev","followers_url":"https://api.github.com/users/maratfakhreev/followers","following_url":"https://api.github.com/users/maratfakhreev/following{/other_user}","gists_url":"https://api.github.com/users/maratfakhreev/gists{/gist_id}","starred_url":"https://api.github.com/users/maratfakhreev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maratfakhreev/subscriptions","organizations_url":"https://api.github.com/users/maratfakhreev/orgs","repos_url":"https://api.github.com/users/maratfakhreev/repos","events_url":"https://api.github.com/users/maratfakhreev/events{/privacy}","received_events_url":"https://api.github.com/users/maratfakhreev/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T08:58:46Z","updated_at":"2015-08-20T08:58:46Z","body":"I just start the gulp and this error occurs. If I remove `{ stage: 0 }` from `babelify.configure` all works fine\r\n"}}