diff --git a/packages/babel-core/src/transformation/file/file.js b/packages/babel-core/src/transformation/file/file.js index 4187151a97..7037465248 100644 --- a/packages/babel-core/src/transformation/file/file.js +++ b/packages/babel-core/src/transformation/file/file.js @@ -139,7 +139,7 @@ export default class File { if (typeof versionRange !== "string") return true; // semver.intersects() has some surprising behavior with comparing ranges - // with preprelease versions. We add '^' to ensure that we are always + // with pre-release versions. We add '^' to ensure that we are always // comparing ranges with ranges, which sidesteps this logic. // For example: // diff --git a/packages/babel-plugin-transform-runtime/src/helpers.js b/packages/babel-plugin-transform-runtime/src/helpers.js index f99730dc94..3c2d325b5b 100644 --- a/packages/babel-plugin-transform-runtime/src/helpers.js +++ b/packages/babel-plugin-transform-runtime/src/helpers.js @@ -8,7 +8,7 @@ export function hasMinVersion(minVersion, runtimeVersion) { if (!runtimeVersion) return true; // semver.intersects() has some surprising behavior with comparing ranges - // with preprelease versions. We add '^' to ensure that we are always + // with pre-release versions. We add '^' to ensure that we are always // comparing ranges with ranges, which sidesteps this logic. // For example: //