fix(core): build() API outfile readFile 미정의 버그 수정#840
Merged
Conversation
build() API에서 outfile 옵션 사용 시 readFile이 import되지 않아 ReferenceError가 발생하던 버그 수정. dynamic import 추가. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Smoke Test Results (CI)Smoke Test Results
Size Comparison (ZTS vs esbuild)
Average ratio: 0.96x | Smaller: 122 | Similar(±10%): 1 | Larger: 8
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build()API에서outfile옵션 사용 시readFile이 import되지 않아ReferenceError: readFile is not defined발생하던 버그 수정collectOutputFiles()에서는 로컬 dynamic import로readFile을 가져오고 있었으나,outfile분기에서는 누락Test plan
build({ outfile, bundle: true })→ 정상 동작tests/config-options.test.ts9/9 전체 통과🤖 Generated with Claude Code