Skip to content

Commit 3c713d5

Browse files
SimenBtrueadm
authored andcommitted
chore: update to latest release of babel (#17897)
1 parent 3b3decf commit 3c713d5

File tree

4 files changed

+761
-739
lines changed

4 files changed

+761
-739
lines changed

package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44
"packages/*"
55
],
66
"devDependencies": {
7-
"@babel/cli": "^7.0.0",
8-
"@babel/code-frame": "^7.0.0",
9-
"@babel/core": "^7.0.0",
10-
"@babel/helper-module-imports": "^7.0.0",
11-
"@babel/parser": "^7.0.0",
12-
"@babel/plugin-external-helpers": "^7.0.0",
13-
"@babel/plugin-proposal-class-properties": "^7.0.0",
14-
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
15-
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
16-
"@babel/plugin-syntax-jsx": "^7.2.0",
17-
"@babel/plugin-transform-arrow-functions": "^7.0.0",
18-
"@babel/plugin-transform-async-to-generator": "^7.0.0",
19-
"@babel/plugin-transform-block-scoped-functions": "^7.0.0",
20-
"@babel/plugin-transform-block-scoping": "^7.0.0",
21-
"@babel/plugin-transform-classes": "^7.0.0",
22-
"@babel/plugin-transform-computed-properties": "^7.0.0",
23-
"@babel/plugin-transform-destructuring": "^7.0.0",
24-
"@babel/plugin-transform-for-of": "^7.0.0",
25-
"@babel/plugin-transform-literals": "^7.0.0",
26-
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
27-
"@babel/plugin-transform-object-super": "^7.0.0",
28-
"@babel/plugin-transform-parameters": "^7.0.0",
29-
"@babel/plugin-transform-react-jsx-source": "^7.0.0",
30-
"@babel/plugin-transform-shorthand-properties": "^7.0.0",
31-
"@babel/plugin-transform-spread": "^7.0.0",
32-
"@babel/plugin-transform-template-literals": "^7.0.0",
33-
"@babel/preset-flow": "^7.0.0",
34-
"@babel/preset-react": "^7.0.0",
35-
"@babel/traverse": "^7.0.0",
7+
"@babel/cli": "^7.8.0",
8+
"@babel/code-frame": "^7.8.0",
9+
"@babel/core": "^7.8.0",
10+
"@babel/helper-module-imports": "^7.8.0",
11+
"@babel/parser": "^7.8.0",
12+
"@babel/plugin-external-helpers": "^7.8.0",
13+
"@babel/plugin-proposal-class-properties": "^7.8.0",
14+
"@babel/plugin-proposal-object-rest-spread": "^7.8.0",
15+
"@babel/plugin-syntax-dynamic-import": "^7.8.0",
16+
"@babel/plugin-syntax-jsx": "^7.8.0",
17+
"@babel/plugin-transform-arrow-functions": "^7.8.0",
18+
"@babel/plugin-transform-async-to-generator": "^7.8.0",
19+
"@babel/plugin-transform-block-scoped-functions": "^7.8.0",
20+
"@babel/plugin-transform-block-scoping": "^7.8.0",
21+
"@babel/plugin-transform-classes": "^7.8.0",
22+
"@babel/plugin-transform-computed-properties": "^7.8.0",
23+
"@babel/plugin-transform-destructuring": "^7.8.0",
24+
"@babel/plugin-transform-for-of": "^7.8.0",
25+
"@babel/plugin-transform-literals": "^7.8.0",
26+
"@babel/plugin-transform-modules-commonjs": "^7.8.0",
27+
"@babel/plugin-transform-object-super": "^7.8.0",
28+
"@babel/plugin-transform-parameters": "^7.8.0",
29+
"@babel/plugin-transform-react-jsx-source": "^7.8.0",
30+
"@babel/plugin-transform-shorthand-properties": "^7.8.0",
31+
"@babel/plugin-transform-spread": "^7.8.0",
32+
"@babel/plugin-transform-template-literals": "^7.8.0",
33+
"@babel/preset-flow": "^7.8.0",
34+
"@babel/preset-react": "^7.8.0",
35+
"@babel/traverse": "^7.8.0",
3636
"@mattiasbuelens/web-streams-polyfill": "0.1.0",
3737
"art": "^0.10.1",
3838
"babel-eslint": "^10.0.3",

packages/babel-plugin-react-jsx/__tests__/TransformJSXToReactCreateElement-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ describe('transform react to jsx', () => {
201201
}
202202
expect(_error).toEqual(
203203
new SyntaxError(
204-
'undefined: Spread children are not supported in React.' +
204+
'unknown: Spread children are not supported in React.' +
205205
'\n' +
206206
codeFrame.codeFrameColumns(
207207
code,
208-
{start: {line: 1, column: 6}},
208+
{start: {line: 1, column: 6}, end: {line: 1, column: 19}},
209209
{highlightCode: true}
210210
)
211211
)
@@ -355,13 +355,13 @@ describe('transform react to jsx', () => {
355355
}
356356
expect(_error).toEqual(
357357
new SyntaxError(
358-
"undefined: Namespace tags are not supported by default. React's " +
358+
"unknown: Namespace tags are not supported by default. React's " +
359359
"JSX doesn't support namespace tags. You can turn on the " +
360360
"'throwIfNamespace' flag to bypass this warning." +
361361
'\n' +
362362
codeFrame.codeFrameColumns(
363363
code,
364-
{start: {line: 1, column: 2}},
364+
{start: {line: 1, column: 2}, end: {line: 1, column: 9}},
365365
{highlightCode: true}
366366
)
367367
)

packages/babel-plugin-react-jsx/__tests__/TransformJSXToReactJSX-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ describe('transform react to jsx', () => {
292292
}
293293
expect(_error).toEqual(
294294
new SyntaxError(
295-
'undefined: Spread children are not supported in React.' +
295+
'unknown: Spread children are not supported in React.' +
296296
'\n' +
297297
codeFrame.codeFrameColumns(
298298
code,
299-
{start: {line: 1, column: 6}},
299+
{start: {line: 1, column: 6}, end: {line: 1, column: 19}},
300300
{highlightCode: true}
301301
)
302302
)
@@ -446,13 +446,13 @@ describe('transform react to jsx', () => {
446446
}
447447
expect(_error).toEqual(
448448
new SyntaxError(
449-
"undefined: Namespace tags are not supported by default. React's " +
449+
"unknown: Namespace tags are not supported by default. React's " +
450450
"JSX doesn't support namespace tags. You can turn on the " +
451451
"'throwIfNamespace' flag to bypass this warning." +
452452
'\n' +
453453
codeFrame.codeFrameColumns(
454454
code,
455-
{start: {line: 1, column: 2}},
455+
{start: {line: 1, column: 2}, end: {line: 1, column: 9}},
456456
{highlightCode: true}
457457
)
458458
)

0 commit comments

Comments
 (0)