/tsconfig.json'), // 导入本地ts配置
extensions
})
// eslint
const esPlugin = eslint({
throwOnError: true...index.ts'),
plugins:[
resolve(extensions),
commonjs(),
esPlugin,
tsPlugin,
]
}
// 需要导出的模块类型...node",
"allowJs": false, // 是否编辑js文件
"strict": true, // 严格模式
"noUnusedLocals": true, // 未使用变量报错..."experimentalDecorators": true, // 启动装饰器
"resolveJsonModule": true, // 加载json
"esModuleInterop.../lib/types", // 定义文件输出目录
"lib": ["esnext", "dom"], // 导入库类型定义
"types": ["node"] // 导入指定类型包