Skip to content

Commit

Permalink
swc supports spread children now
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Dec 10, 2022
1 parent 6404530 commit be69cc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
@@ -1,3 +1,5 @@
/* @jsx h */

const Boom = () => {
const littleBoom = ['hello', 'world']
return <div>{...littleBoom.map(el => el)}</div>
Expand Down
14 changes: 7 additions & 7 deletions packages/core/integration-tests/test/transpilation.js
Expand Up @@ -411,20 +411,20 @@ describe('transpilation', function () {
{
message: null,
start: {
column: 15,
line: 3,
column: 1,
line: 1,
},
end: {
column: 43,
line: 3,
column: 12,
line: 1,
},
},
],
filePath: source,
},
],
hints: null,
message: 'Spread children are not supported in React.',
message: 'pragma cannot be set when runtime is automatic',
origin: '@parcel/transformer-js',
},
{
Expand All @@ -435,11 +435,11 @@ describe('transpilation', function () {
message: null,
start: {
column: 4,
line: 7,
line: 9,
},
end: {
column: 4,
line: 7,
line: 9,
},
},
],
Expand Down

0 comments on commit be69cc6

Please sign in to comment.