Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support packages that use modules #1556

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/shared-internals/src/babel-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export default function babelFilter(skipBabel: { package: string; semverRange?:
}

function babelCanHandle(filename: string) {
// we can handle .js and .ts files with babel. If typescript is enabled, .ts
// files become resolvable and stage3 will be asking us if they should get
// we can handle .mjs, .js and .ts files with babel. If typescript is enabled,
// .ts files become resolvable and stage3 will be asking us if they should get
// transpiled and the answer is yes. If typescript is not enbled, they will
// not be resolvable, so stage3 won't ask us about them.
return /\.[jt]s$/i.test(filename);
return /\.m?[jt]s$/i.test(filename);
}