Skip to content

Commit

Permalink
Fix hang up when a lot of parallel operation request the file system
Browse files Browse the repository at this point in the history
  • Loading branch information
garthenweb committed Dec 22, 2018
1 parent 449a48e commit 2b8724b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/parcel-bundler/index.js
@@ -1,3 +1,5 @@
process.env.UV_THREADPOOL_SIZE = process.env.UV_THREADPOOL_SIZE || 16

// Node 8 supports native async functions - no need to use compiled code!
module.exports = parseInt(process.versions.node, 10) < 8
? require('./lib/Bundler')
Expand Down
2 changes: 2 additions & 0 deletions packages/core/parcel-bundler/src/cli.js
@@ -1,3 +1,5 @@
process.env.UV_THREADPOOL_SIZE = process.env.UV_THREADPOOL_SIZE || 16

require('v8-compile-cache');
const chalk = require('chalk');
const program = require('commander');
Expand Down

0 comments on commit 2b8724b

Please sign in to comment.