解决方法 将ts-loader从4.0降低到3.1.1解决问题。是由于webpack和ts-loader版本不兼容造成的。 转载于:https://www.cnblogs.com/raind/p/9022267.html