编译BUG,mac下面编译,凡是使用了interface的ts文件都无法编译成功。
源文件
TestInterface.ts
export default interface TestInterface extends cc.EventTarget {
testName: string;
}
Mac编译js

多出的一段内容为
exports.default = interface;
TestInterface;
cc.EventTarget;
{
testName: string;
}
Windows编译js
对比可以看出在mac下面ts编译成js时,多出了一段,这多出的一段导致js语法错误,因为interface是js的保留关键字
报错日志
![]()
