mirror of
https://github.com/status-im/metro.git
synced 2025-03-02 11:40:55 +00:00
[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
c786446983
commit
4a423d7bba
4
react-packager/src/JSTransformer/index.js
vendored
4
react-packager/src/JSTransformer/index.js
vendored
@ -23,7 +23,7 @@ const readFile = Promise.denodeify(fs.readFile);
|
|||||||
const MAX_CALLS_PER_WORKER = 600;
|
const MAX_CALLS_PER_WORKER = 600;
|
||||||
|
|
||||||
// Worker will timeout if one of the callers timeout.
|
// Worker will timeout if one of the callers timeout.
|
||||||
const DEFAULT_MAX_CALL_TIME = 10000;
|
const DEFAULT_MAX_CALL_TIME = 30000;
|
||||||
|
|
||||||
const validateOpts = declareOpts({
|
const validateOpts = declareOpts({
|
||||||
projectRoots: {
|
projectRoots: {
|
||||||
@ -112,7 +112,7 @@ class Transformer {
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
if (err.type === 'TimeoutError') {
|
if (err.type === 'TimeoutError') {
|
||||||
const timeoutErr = new Error(
|
const timeoutErr = new Error(
|
||||||
`TimeoutError: transforming ${filePath} took longer than `
|
`TimeoutError: transforming ${filePath} took longer than ` +
|
||||||
`${this._opts.transformTimeoutInterval / 1000} seconds.\n` +
|
`${this._opts.transformTimeoutInterval / 1000} seconds.\n` +
|
||||||
`You can adjust timeout via the 'transformTimeoutInterval' option`
|
`You can adjust timeout via the 'transformTimeoutInterval' option`
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user