Skip to main content

Command Palette

Search for a command to run...

일본 한달살이 23일차 (5월 20일)

Updated
1 min read

컨디션이 매우 안 좋았다.

아침은 대충 초밥 먹었다.

점심을 늦게 먹었는데, 회를 먹었다.

참치와 우니는 가격에 비례해서 맛있어진다.

란 말을 최근에 누가 했었는데 맞는 말 같다. 저녁은 간단하게 두부하고 삼각김밥 먹었다.

작업 일지

SWC Relay 플러그인 버그 수정

Relay와 서버 액션을 같이 썼을 때 에러나는 현상을 고쳤다.

next.js: Stage 3 데코레이터 지원

데코레이터 버전을 지정할 수 있게 바꿨다.

터보팩 Tree shaking PR

리뷰 받을 때 팀원분이 테케 추가해주셔서 그것을 고치기 위해 작업했다.

EcmascriptModuleContent::new 가 잘못된 값으로 호출되고 있었고, 관련 코드에 로깅을 추가했다.


#[turbo_tasks::value_impl]
impl EcmascriptChunkItem for EcmascriptModulePartChunkItem {
    #[turbo_tasks::function]
    fn content(self: Vc<Self>) -> Vc<EcmascriptChunkItemContent> {
        panic!("content() should never be called");
    }

    #[turbo_tasks::function]
    async fn content_with_async_module_info(
        self: Vc<Self>,
        async_module_info: Option<Vc<AsyncModuleInfo>>,
    ) -> Result<Vc<EcmascriptChunkItemContent>> {
        let this = self.await?;
        let module = this.module.await?;

        let split_data = split_module(module.full_module);
        let parsed = part_of_module(split_data, module.part);

        let analyze = this.module.analyze().await?;
        let async_module_options = analyze.async_module.module_options(async_module_info);
        vdbg!(async_module_options, module.part, analyze.async_module);

        let module_type_result = *module.full_module.determine_module_type().await?;

        let content = EcmascriptModuleContent::new(
            parsed,
            module.full_module.ident(),
            module_type_result.module_type,
            this.chunking_context,
            analyze.references,
            analyze.code_generation,
            analyze.async_module,
            analyze.source_map,
            analyze.exports,
            async_module_info,
        );

        Ok(EcmascriptChunkItemContent::new(
            content,
            this.chunking_context,
            module.full_module.await?.options,
            async_module_options,
        ))
    }

    #[turbo_tasks::function]
    fn chunking_context(&self) -> Vc<Box<dyn ChunkingContext>> {
        self.chunking_context
    }
}

다른 ModulePart는 작동하는데 ModulePart::ModuleEvaluation에 대해 위의 vdbg!가 실행되지 않고 있었다. 여러가지 삽질을 했지만 해결하지 못했다.

next.js 이슈 triage

canary 버전 업데이트하고 재현 시도했는데 실패했다.

More from this blog

한국의 학벌에 대한 생각

내 블로그의 제목이 kdy1: The way I think 인만큼 앞으로는 내 생각을 더 자주 올리려고 한다. 한국 기준으로, 학벌은 사람을 볼 때 꽤나 유용한 지표이지만, 절대적이지는 않다. 경험적인 얘기일 뿐이지만, 성균관대학교 자퇴생으로서 느낀 것들이 몇 가지 있다. 대학까지 간 사람의 학벌은 학습 능력 x 성실함 에 대체로 비례한다. 그래서 의미가

Apr 3, 20261 min read

인간 지능에 대한 메모장

최종 업데이트: 2026/03/15 지능의 유전 현재 인류 기준으로, 고지능자는 고지능 유전자가 많이 겹친 사람이다. 지능의 유전엔 X 염색체가 매우 중요한 역할을 한다. 그리고 이게 남자와 여자의 지능 분포 차이를 만든다. 극상위권에 여자가 거의 없는 이유가 이것이다. 고지능 X 염색체가 여자한테서 발현되려면 2개가 있어야 한다. 이는 인간의 생

Mar 15, 20262 min read

Ai 코딩 팁 2 (한국어)

발표 자료: https://gamma.app/docs/AI--2a52e7tk3eb1ch1 AI 활용법 관련해서 간단하게 발표를 했다. 발표 자료 앞쪽은 전에 블로그에 올린 글이랑 같은 내용이다. 이 글에서는 기존 글에서 다루지 않은 내용들을 다루겠다. 에러 메시지 및 로깅 구체적 타입 및 스키마 활용 any 타입은 사람에게도 위험하지만, AI에게는 더 위험하다. 마찬가지로, JSON.parse처럼 아무 제약 없는 파싱 느슨한 인터페이스 ...

Jan 30, 20265 min read

kdy1: The way I think

233 posts