[react-packager] Fix error in template string and bump timeout
Summary: Fix error in the template string (no plus, thinks it's a function). And bump the timeout to 30 seconds because a file is taking more than 10 seconds `js/RKJSModules/Libraries/FBComponents/FBFed/FeedStoryFragments.js`
This commit is contained in:
parent
febc03a38b
commit
3bfa90e433
|
@ -23,7 +23,7 @@ const readFile = Promise.denodeify(fs.readFile);
|
|||
const MAX_CALLS_PER_WORKER = 600;
|
||||
|
||||
// Worker will timeout if one of the callers timeout.
|
||||
const DEFAULT_MAX_CALL_TIME = 10000;
|
||||
const DEFAULT_MAX_CALL_TIME = 30000;
|
||||
|
||||
const validateOpts = declareOpts({
|
||||
projectRoots: {
|
||||
|
@ -112,7 +112,7 @@ class Transformer {
|
|||
}).catch(err => {
|
||||
if (err.type === 'TimeoutError') {
|
||||
const timeoutErr = new Error(
|
||||
`TimeoutError: transforming ${filePath} took longer than `
|
||||
`TimeoutError: transforming ${filePath} took longer than ` +
|
||||
`${this._opts.transformTimeoutInterval / 1000} seconds.\n` +
|
||||
`You can adjust timeout via the 'transformTimeoutInterval' option`
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue