mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 22:56:11 +03:00
7f5bfdcc00
swc_bundler: - Improve performance - Use `Vec<AHashSet<usize>>` instead of `AHashSet<(usize, usize)>`. - Fix statement orderings. (denoland/deno#9464) - Fix wrapped esm mixed with circular imports. (denoland/deno#8224) - Store content of wrapped esm at top level. (denoland/deno#8224)
31 lines
448 B
TypeScript
31 lines
448 B
TypeScript
function a() {
|
|
console.log("a");
|
|
}
|
|
var O1;
|
|
(function(O1) {
|
|
O1[O1["A"] = 0] = "A";
|
|
O1[O1["B"] = 1] = "B";
|
|
O1[O1["C"] = 2] = "C";
|
|
})(O1 || (O1 = {
|
|
}));
|
|
export { O1 as O };
|
|
class A {
|
|
#a;
|
|
#c;
|
|
constructor(o = {
|
|
}){
|
|
const { a: a1 = a , c , } = o;
|
|
this.#a = a1;
|
|
this.#c = c;
|
|
}
|
|
a() {
|
|
this.#a();
|
|
}
|
|
c() {
|
|
console.log(this.#c);
|
|
}
|
|
}
|
|
let a2 = new A();
|
|
a2.a();
|
|
a2.c();
|