Skip to content

Commit

Permalink
Test version warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 12, 2019
1 parent 055b16c commit ee8ef31
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
>>>>>> [console.warn] <<<<<<
The installed version of "@babel/runtime" (^7.3.0) is greater than the version specified in "@babel/transform-runtime"'s options (7.2.0). This difference won't cause any problem in runtime functionality, but it will make your compiled code larger since Babel can't rely on some new or modified helpers to be present in the installed "@babel/runtime". For this reason, some helpers will be inlined in your code as if you weren't using "@babel/plugin-transform-runtime", leadng to bigger bundles.
To fix this problem, you can specify the correct version in "@babel/transform-runtime"'s options:

{
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"version": "7.3.0"
}
]
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": [["transform-runtime", { "version": "7.2.0" }]]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"@babel/runtime": "^7.3.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
>>>>>> [console.warn] <<<<<<
The installed version of "@babel/runtime" (^7.3.0) is lower than the version specified in "@babel/transform-runtime"'s options (7.5.0). For this reason, Babel will assume that some helpers are supported by the installed "@babel/runtime" version, even if they might not actually be present.
To fix this problem, you must specify the correct version in "@babel/transform-runtime"'s options:

{
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"version": "7.3.0"
}
]
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": [["@babel/plugin-transform-runtime", { "version": "7.5.0" }]]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"@babel/runtime": "^7.3.0"
}
}

0 comments on commit ee8ef31

Please sign in to comment.