Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 25, 2024
1 parent b8976db commit 3853142
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-plugin-polyfill-corejs2/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export function hasMinVersion(
// that the built output will include all definitions.
if (!runtimeVersion || !minVersion) return true;

runtimeVersion = String(runtimeVersion);

// semver.intersects() has some surprising behavior with comparing ranges
// with preprelease versions. We add '^' to ensure that we are always
// comparing ranges with ranges, which sidesteps this logic.
Expand Down

0 comments on commit 3853142

Please sign in to comment.