remapScripts 重新映射脚本路径(TS->JS)
remapScripts
类型: MethodDeclaration
定义位置: data.ts
描述
重新映射脚本路径(TS->JS)
返回值
类型: void
源代码
位置: 第 618 行
private remapScripts(): void {
if (this.config.deployed) return
const tsExtname = /\.ts$/
const tsOutDir = this.tsOutDir
for (const meta of this.manifest.script) {
if (tsExtname.test(meta.path)) {
meta.path = tsOutDir + meta.path.replace(tsExtname, '.js')
}
}
}
文档生成时间:2025/7/7 12:07:06