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:
parent
f49234aa69
commit
1334bc99e0
@ -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:
|
||||||
//
|
//
|
||||||
|
|||||||
@ -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:
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user