Skip to content

fix: 플러그인 hook 로더 .ts/.js 확장자 매칭 수정#369

Merged
sdk-kr merged 1 commit into
mainfrom
fix/plugin-hook-ts-extension
Mar 8, 2026
Merged

fix: 플러그인 hook 로더 .ts/.js 확장자 매칭 수정#369
sdk-kr merged 1 commit into
mainfrom
fix/plugin-hook-ts-extension

Conversation

@sdk-kr
Copy link
Copy Markdown
Contributor

@sdk-kr sdk-kr commented Mar 8, 2026

Summary

  • Vite 빌드 시 import.meta.glob 키가 .ts.js로 변환됨
  • plugin.json의 callback 경로(hooks/register-layouts.ts)와 불일치
  • .ts로 먼저 매칭 시도, 없으면 .js로 fallback 추가

Test plan

  • 운영에서 register-layouts.js 404 에러 사라짐 확인

Vite 빌드 시 glob 키가 .ts → .js로 변환되어
plugin.json의 callback 경로(.ts)와 매칭 실패.
.ts로 먼저 시도, 없으면 .js로 fallback.
@sdk-kr sdk-kr merged commit e062a56 into main Mar 8, 2026
7 of 12 checks passed
@sdk-kr sdk-kr deleted the fix/plugin-hook-ts-extension branch March 8, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant