You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly, if export default is replaced with return, it compiles as expected.
If braces are added around the entire exported object (export default {...}), it also compiles; so that can be the workaround for anyone dealing with this right now. I stumbled across it because of trying to use an object spread in the object:
exportdefaulta: {
b...
}
c:2
Which requires braces around the b....
The text was updated successfully, but these errors were encountered:
…ays work, even if the object contains braces. `default` shouldn't suppress a newline, we should handle it in the grammar the same way returning an implicit object is handled
… even if the object contains braces. `default` shouldn't suppress a newline, we should handle it in the grammar the same way returning an implicit object is handled (#4783)
Minimal case:
Interestingly, if
export default
is replaced withreturn
, it compiles as expected.If braces are added around the entire exported object (
export default {
...}
), it also compiles; so that can be the workaround for anyone dealing with this right now. I stumbled across it because of trying to use an object spread in the object:Which requires braces around the
b...
.The text was updated successfully, but these errors were encountered: