From 1334bc99e05ef863aa372cc1b692cffedb5d50ec Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 24 Sep 2020 06:06:21 +1000 Subject: [PATCH] docs: Fix simple typo, preprelease -> pre-release (#12102) There is a small typo in packages/babel-core/src/transformation/file/file.js, packages/babel-plugin-transform-runtime/src/helpers.js. Should read `pre-release` rather than `preprelease`. --- packages/babel-core/src/transformation/file/file.js | 2 +- packages/babel-plugin-transform-runtime/src/helpers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: //