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

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598624415/8aa38a15-cd04-488e-8e14-465550fcb656.png align="center")

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

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598648040/64d3e02b-7a2e-4749-b9bb-8d220aa6bd1f.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598650843/4fc3b5dd-264b-4aa6-9033-3b1ab1fc6713.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598657043/247c99af-fd41-4580-b051-1971bddaf86f.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598659681/ccc6441e-dc13-43c9-b6e6-bba18f05c544.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598663462/c395ec46-2321-46c9-ae5c-24d20a69cd8e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598667772/a05318c0-8c39-4e8e-873d-c0467654de92.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598672213/35407d32-bb33-46ea-9fb1-5aaee70aa407.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716598675022/ce668dcb-5961-465a-8e76-438965c737d7.png align="center")

저녁은 야키니쿠 갔다.

### SWC Minifier 버그 수정

* [https://github.com/swc-project/swc/pull/8975](https://github.com/swc-project/swc/pull/8975)
    

### SWC `typeof` 버그 수정

* [https://github.com/swc-project/swc/pull/8976](https://github.com/swc-project/swc/pull/8976)
    

### 터보팩 Tree shaking

* [https://github.com/vercel/turbo/pull/7986](https://github.com/vercel/turbo/pull/7986)
    

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

그런데

```javascript
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");
});
```

```javascript
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";
```

에서

```javascript
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은 만들지 않았다.
