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`.
This commit is contained in:
Tim Gates 2020-09-24 06:06:21 +10:00 committed by GitHub
parent f49234aa69
commit 1334bc99e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ export default class File {
if (typeof versionRange !== "string") return true; if (typeof versionRange !== "string") return true;
// semver.intersects() has some surprising behavior with comparing ranges // 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. // comparing ranges with ranges, which sidesteps this logic.
// For example: // For example:
// //

View File

@ -8,7 +8,7 @@ export function hasMinVersion(minVersion, runtimeVersion) {
if (!runtimeVersion) return true; if (!runtimeVersion) return true;
// semver.intersects() has some surprising behavior with comparing ranges // 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. // comparing ranges with ranges, which sidesteps this logic.
// For example: // For example:
// //