일본 한달살이 27일차 (5월 24일)

1 min read

아침은 대충 먹었고 점심엔 고기 구웠다.

저녁은 야키니쿠 갔다.

SWC Minifier 버그 수정

SWC typeof 버그 수정

터보팩 Tree shaking

테스트 케이스가 잘못된 것이 아니라고 하셔서 로그 추가하고 디버깅했다.

그런데

import { a as a2, b as b2, local as local2 } from "package-star";
it("should optimize star reexports from side effect free module", () => {
  expect(a2).toBe("a");
  expect(b2).toBe("b");
  expect(local2).toBe("local");
});
export { notCompiled } from "./not-compiled.js";
export { notExisting } from "./not-existing.js";
export { notExecuted } from "./not-executed.js";
export * from "./not-executed.js";
export * from "./a.js";
export * from "./b.js";
export const local = "local";

에서

export { notCompiled } from "./not-compiled.js";
export { notExisting } from "./not-existing.js";
export { notExecuted } from "./not-executed.js";
export * from "./not-executed.js";

를 어떤 근거로 날리는지를 모르겠어서 질문남겨놓고 다른 작업했다. 그런데 저 테스트 케이스에서는 처리가 불가능한 게 맞았다.

터보팩 Scope hoisting

아직 생각 정리하는 단계라 PR은 만들지 않았다.