Skip to content

Commit bf526a1

Browse files
committed
standardize on skipPreflightCheck
1 parent f6f48de commit bf526a1

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

packages/babel/src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function createBabelInputPluginFactory(customCallback = returnObject) {
211211
return workerPool.runTask({
212212
inputCode: code,
213213
babelOptions: { ...babelOptions, filename },
214-
runPreflightCheck: !skipPreflightCheck,
214+
skipPreflightCheck,
215215
babelHelpers
216216
});
217217
}
@@ -225,7 +225,7 @@ function createBabelInputPluginFactory(customCallback = returnObject) {
225225
},
226226
customOptions,
227227
error: this.error.bind(this),
228-
runPreflightCheck: !skipPreflightCheck,
228+
skipPreflightCheck,
229229
babelHelpers
230230
});
231231
}
@@ -327,7 +327,8 @@ function createBabelOutputPluginFactory(customCallback = returnObject) {
327327
result: overrides.result?.bind(this)
328328
},
329329
customOptions,
330-
error: this.error.bind(this)
330+
error: this.error.bind(this),
331+
skipPreflightCheck: true
331332
});
332333
}
333334
};

packages/babel/src/transformCode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function transformCode({
1111
overrides,
1212
customOptions,
1313
error,
14-
runPreflightCheck,
14+
skipPreflightCheck,
1515
babelHelpers
1616
}) {
1717
// loadPartialConfigAsync has become available in @babel/core@7.8.0
@@ -29,7 +29,7 @@ export default async function transformCode({
2929
customOptions
3030
});
3131

32-
if (runPreflightCheck) {
32+
if (!skipPreflightCheck) {
3333
await preflightCheck(error, babelHelpers, transformOptions);
3434
}
3535

0 commit comments

Comments
 (0)