Skip to content

Commit

Permalink
fix(babel): consider path delimeter on windows (rollup#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
atti187 committed Jan 13, 2022
1 parent 9874740 commit a34837d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel/src/preflightCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function helpersTestTransform() {
const mismatchError = (actual, expected, filename) =>
`You have declared using "${expected}" babelHelpers, but transforming ${filename} resulted in "${actual}". Please check your configuration.`;

const inheritsHelperRe = /\/helpers\/(esm\/)?inherits/;
const inheritsHelperRe = /[\\\/]+helpers[\\\/]+(esm[\\\/]+)?inherits/;

export default async function preflightCheck(ctx, babelHelpers, transformOptions) {
const finalOptions = addBabelPlugin(transformOptions, helpersTestTransform);
Expand Down

0 comments on commit a34837d

Please sign in to comment.