Skip to content

Commit

Permalink
Fix conditional grouping which resulted in failure on official Babel 7.
Browse files Browse the repository at this point in the history
Follows-up: 72794df.

cc @benjamn @hwillson
  • Loading branch information
abernix committed Aug 31, 2018
1 parent a52a2c2 commit 09cb1f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/babel-runtime/babel-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ if (parseInt(babelRuntimeVersion, 10) < 6) {
} else {
var match = /^7\.0\.0-(beta|rc)\./.exec(babelRuntimeVersion);
if (match &&
match[1] === "rc" ||
(match[1] === "rc" ||
(match[1] === "beta" &&
parseInt(babelRuntimeVersion.split(".").pop(), 10) > 55)) {
parseInt(babelRuntimeVersion.split(".").pop(), 10) > 55))) {
console.warn([
"The version of @babel/runtime installed in your node_modules directory ",
"(" + babelRuntimeVersion + ") contains a breaking change which was introduced by ",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-runtime/package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: "babel-runtime",
summary: "Runtime support for output of Babel transpiler",
version: '1.2.5',
version: '1.2.6',
documentation: 'README.md'
});

Expand Down

0 comments on commit 09cb1f8

Please sign in to comment.