mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: fix crash in build.js watch mode with SyntaxError (#35904)
This commit is contained in:
parent
0876b99a4d
commit
d178b4dbaf
@ -287,7 +287,7 @@ class EsbuildStep extends Step {
|
||||
if (watchMode) {
|
||||
await this._ensureWatching();
|
||||
} else {
|
||||
console.log('==== Running esbuild', this._options.entryPoints);
|
||||
console.log('==== Running esbuild', this._options.entryPoints.map(e => path.relative(ROOT, e)).join(', '));
|
||||
const start = Date.now();
|
||||
await build(this._options);
|
||||
console.log('==== Done in', Date.now() - start, 'ms');
|
||||
@ -316,7 +316,13 @@ class EsbuildStep extends Step {
|
||||
do {
|
||||
this._sourcesChanged = false;
|
||||
this._rebuilding = true;
|
||||
await this._context?.rebuild();
|
||||
try {
|
||||
await this._context?.rebuild();
|
||||
} catch (e) {
|
||||
|
||||
console.error('Rebuild failed:', e);
|
||||
}
|
||||
|
||||
this._rebuilding = false;
|
||||
} while (this._sourcesChanged);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user