📜  从 json 读取配置 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.805000             🧑  作者: Mango

代码示例1
{  "compilerOptions": {  "resolveJsonModule": true, "esModuleInterop": true } }

add this to tsconfig.json, then read json by importing like normal module:
import '../assets/test.json'