# 01 · config-matrix **演示**:同一份源码在 `target: ES2022` 与 `ES2015` 下产物不同;`lib` 只影响类型。 **运行**:在 `tutorials/typescript` 下执行 `npm run build`,再执行 `npm run serve`,打开 `http://localhost:8080/examples/31-tsconfig-build-pipeline/01-config-matrix/`;开 Console。 **预期控制台输出**: ```text 2 0 ``` **类型检查**:`node node_modules/typescript/bin/tsc -p examples/31-tsconfig-build-pipeline/01-config-matrix/tsconfig.types.json` **注意**:`target` 不做 polyfill;`ES2015` 产物里 `??` 被降级,但 `Promise` 等 API 仍需运行时支持。