swc/bundler/tests/fixture/issue-1150-2/input/entry.ts
강동윤 6f006208ac
bundler: Fix bugs ()
swc_bundler:
 - Fix importing from transitive dependencies with aliases.
 - Fix stack overflow while computing plan for modules with cyclic dependencies.
 - Handle `export *` for function / class properly. ()
2020-10-10 18:32:31 +09:00

33 lines
438 B
TypeScript

import { a as defaultA, O } from "./m.ts";
export { O } from "./m.ts";
interface AOptions {
a?(): void;
c?: O;
}
class A {
#a: () => void;
#c?: O;
constructor(o: AOptions = {}) {
const {
a = defaultA,
c,
} = o;
this.#a = a;
this.#c = c;
}
a() {
this.#a();
}
c() {
console.log(this.#c);
}
}
let a = new A();
a.a();
a.c();