We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8835dd2 commit c259de5Copy full SHA for c259de5
packages/babel/src/preflightCheck.js
@@ -34,7 +34,8 @@ function helpersTestTransform() {
34
const mismatchError = (actual, expected, filename) =>
35
`You have declared using "${expected}" babelHelpers, but transforming ${filename} resulted in "${actual}". Please check your configuration.`;
36
37
-const inheritsHelperRe = /\/helpers\/(esm\/)?inherits/;
+// Revert to /\/helpers\/(esm\/)?inherits/ when Babel 8 gets released, this was fixed in https://github.com/babel/babel/issues/14185
38
+const inheritsHelperRe = /[\\/]+helpers[\\/]+(esm[\\/]+)?inherits/;
39
40
export default async function preflightCheck(ctx, babelHelpers, transformOptions) {
41
const finalOptions = addBabelPlugin(transformOptions, helpersTestTransform);
0 commit comments