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 Jan 2, 2019
1 parent d04192b commit acf8a57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/core/parcel-bundler/bin/cli.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node

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
Expand Down
7 changes: 4 additions & 3 deletions packages/core/parcel-bundler/index.js
@@ -1,4 +1,5 @@
// Node 8 supports native async functions - no need to use compiled code!
module.exports = parseInt(process.versions.node, 10) < 8
? require('./lib/Bundler')
: require('./src/Bundler');
module.exports =
parseInt(process.versions.node, 10) < 8
? require('./lib/Bundler')
: require('./src/Bundler');

0 comments on commit acf8a57

Please sign in to comment.