Open
Description
What problem does this feature solve?
-
Support comments. In the json file, it is usually very inconvenient for developers to write code comments. We don't know that we use jsonc or json5 to parse it. Supporting _meta.jsonc or _meta.json5 will make it complicated. This is a historical problem.
-
Support more flexible grammar and better DX
const meta = [...].map((item) => ({
title: 'I am a title',
link: item.link
// ...
}))
export default meta;
- Support conditional compilation, such as
process.env
const meta = process.env.IS_COMPANY_INNER_DEPLOY ? [/* 1 */] : [/* 2 */];
export default meta;