Skip to content

Commit

Permalink
docs: Fix simple typo, preprelease -> pre-release (#12102)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
timgates42 committed Sep 23, 2020
1 parent f49234a commit 1334bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-core/src/transformation/file/file.js
Expand Up @@ -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:
//
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-runtime/src/helpers.js
Expand Up @@ -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:
//
Expand Down

0 comments on commit 1334bc9

Please sign in to comment.