-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
055b16c
commit ee8ef31
Showing
12 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...ges/babel-plugin-transform-runtime/test/fixtures/version-warning/greater/expected-log.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/greater/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
; |
3 changes: 3 additions & 0 deletions
3
...rm-runtime/test/fixtures/version-warning/greater/node_modules/@babel/runtime/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/greater/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": [["transform-runtime", { "version": "7.2.0" }]] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/greater/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
; |
5 changes: 5 additions & 0 deletions
5
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/greater/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.0" | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/lower/expected-log.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/lower/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
; |
3 changes: 3 additions & 0 deletions
3
...form-runtime/test/fixtures/version-warning/lower/node_modules/@babel/runtime/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/lower/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": [["@babel/plugin-transform-runtime", { "version": "7.5.0" }]] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/lower/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
; |
5 changes: 5 additions & 0 deletions
5
packages/babel-plugin-transform-runtime/test/fixtures/version-warning/lower/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.0" | ||
} | ||
} |