Support single element or top level arrays
- 主要言語
- JavaScript
- スター
- 221
- フォーク
- 8
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Building on @theianjones's proposal in #3.
> 1 open question is how to represent an array with a single element. The only idea I had was fragments like `<>...`. But that would be a separate PR anyway.
Given a component-like function:
```jsx
const Aliases = () => (
<>
)
```
Expect ``:
```json5
[
{
// name: "alias",?
from: "react",
to: "preact-compat",
},
{
// name: "alias",?
from: "react-dom",
to: "preact-compat",
},
]
```
Given:
```jsx
const Resolve = () => (
<>
)
```
Expect ``:
```json5
{
name: "resolve",
alias: [
{
from: "react-dom",
to: "preact-compat",
},
],
}
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。