情况描述
项目是默认使用webpack编译采用es6模块处理方案
出现了以下错误
以下是我写的测试类
A.ts
import {
B} from "./b.js";
export class A {
static getInstance() {
if (!this._instance) {
this._instance = new A();
}
return this._instance;
}
flush() {
console.log("----------------flush-------------------");
}
a() {
console.log("----------------flush-------------------"