{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/558","labels_url":"https://api.github.com/repos/6to5/6to5/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/558/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/558/events","html_url":"https://github.com/6to5/6to5/issues/558","id":55032534,"number":558,"title":"Out of memory error on jsx processing","user":{"login":"mbektimirov","id":918009,"avatar_url":"https://avatars.githubusercontent.com/u/918009?v=3","gravatar_id":"","url":"https://api.github.com/users/mbektimirov","html_url":"https://github.com/mbektimirov","followers_url":"https://api.github.com/users/mbektimirov/followers","following_url":"https://api.github.com/users/mbektimirov/following{/other_user}","gists_url":"https://api.github.com/users/mbektimirov/gists{/gist_id}","starred_url":"https://api.github.com/users/mbektimirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbektimirov/subscriptions","organizations_url":"https://api.github.com/users/mbektimirov/orgs","repos_url":"https://api.github.com/users/mbektimirov/repos","events_url":"https://api.github.com/users/mbektimirov/events{/privacy}","received_events_url":"https://api.github.com/users/mbektimirov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-21T15:23:44Z","updated_at":"2015-01-21T17:17:16Z","closed_at":"2015-01-21T17:07:23Z","body":"I am using 6to5 with jsx, gulp and browserify. After several file changes 6to5 crashes with error: `FATAL ERROR: JS Allocation failed - process out of memory`. I've found out that the problem is with my jsx source by simply switching entry point to js file instead jsx. See the console trace and my configuration below. Pay attention on increasing build time after each bundle change.\r\n\r\n**Tested with the latest 6to5-core**\r\n\r\n```bash\r\n[20:08:04] Running 'bundle'...\r\n[20:08:05] Finished 'bundle' in 73 ms\r\n[BS] File changed: build/app.js\r\n[20:08:10] Running 'bundle'...\r\n[20:08:11] Finished 'bundle' in 88 ms\r\n[BS] File changed: build/app.js\r\n[20:08:13] Running 'bundle'...\r\n[20:08:14] Finished 'bundle' in 367 ms\r\n[BS] File changed: build/app.js\r\n[20:08:18] Running 'bundle'...\r\n[20:08:36] Finished 'bundle' in 17 s\r\n[BS] File changed: build/app.js\r\n[20:08:42] Running 'bundle'...\r\nFATAL ERROR: JS Allocation failed - process out of memory\r\n[1]    23299 abort      gulp\r\n```\r\n\r\nBrowserify Gulp task:\r\n```javascript\r\nvar browserify   = require('browserify');\r\nvar watchify     = require('watchify');\r\nvar bundleLogger = require('../util/bundleLogger');\r\nvar gulp         = require('gulp');\r\nvar handleErrors = require('../util/handleErrors');\r\nvar source       = require('vinyl-source-stream');\r\nvar _6to5        = require('./6to5ify');\r\nvar externalLibs = require('../external-libs');\r\n\r\ngulp.task('browserify', function() {\r\n\r\n\tvar bundler = browserify({\r\n    cache: {}, packageCache: {}, fullPaths: true,\r\n\t\tentries: ['./src/scripts/test_app.jsx'],\r\n\t\textensions: ['.js', '.jsx'],\r\n\t\tdebug: false, \r\n    paths: ['./src/scripts'],\r\n    fast: true,\r\n    detectGlobals: false\r\n\t});\r\n\r\n\r\n  var bundle = function() {\r\n    bundleLogger.start();\r\n\r\n    return bundler\r\n      .external(externalLibs)\r\n      .transform(_6to5)\r\n      .bundle()\r\n      .on('error', handleErrors)\r\n      .pipe(source('app.js'))\r\n      .pipe(gulp.dest('./build/'))\r\n      .on('end', bundleLogger.end);\r\n\r\n\tif(global.isWatching) {\r\n                bundler = watchify(bundler);\r\n\t\tbundler.on('update', bundle);\r\n\t}\r\n\r\n\treturn bundle();\r\n});\r\n```\r\n\r\ntest_app.jsx:\r\n```javascript\r\nvar React = require('react');\r\n\r\nvar Test = React.createClass({\r\n\r\n  render: function() {\r\n    return (\r\n      <h1>Test</h1>\r\n    );\r\n  }\r\n\r\n});\r\n\r\nReact.render(<Test />, document.getElementById('root'));\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/70879534","html_url":"https://github.com/6to5/6to5/issues/558#issuecomment-70879534","issue_url":"https://api.github.com/repos/6to5/6to5/issues/558","id":70879534,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T17:17:16Z","updated_at":"2015-01-21T17:17:16Z","body":"Thank you for sharing the solution!"}}