Skip to content

feat(config): .ts/.js config self-compile loader#2113

Merged
ohah merged 2 commits into
mainfrom
feat/config-ts-loader
Apr 28, 2026
Merged

feat(config): .ts/.js config self-compile loader#2113
ohah merged 2 commits into
mainfrom
feat/config-ts-loader

Conversation

@ohah
Copy link
Copy Markdown
Owner

@ohah ohah commented Apr 28, 2026

요약

  • zts.config.{ts,mts,cts,mjs,js,cjs,json} 7종 확장자 로드.
  • .ts/.mts/.cts 는 NAPI transpile() 로 self-compile 후 dynamic import.
  • tmp 파일은 config 옆에 작성해 사용자 node_modules resolution 을 보존 (esbuild *.bundled-*.mjs 패턴).
  • .cts 는 ZTS 가 CJS-only 로 취급하므로 파싱 단계에서만 .ts 로 가장 (에러 메시지에는 실제 경로 유지).

비범위

테스트

  • bun test packages/core/src/config-loader.test.ts — 15 pass
  • zig build test — 4016/4016 pass
  • bun run lint / bun run fmt:check — 통과

Closes #2100. Part of #2099.

Closes #2100. Phase 1-1 of #2099.

zts.config.{ts,mts,cts,mjs,js,cjs,json} 7종 확장자 로드 지원.

- `.ts/.mts/.cts` 는 NAPI `transpile()` 로 self-compile 후 dynamic import
- `.mjs/.js/.cjs` 는 직접 dynamic import (Bun/Node 표준)
- `.json` 은 readFileSync + JSON.parse
- tmp 파일은 config 옆에 작성해 user 의 node_modules resolution 보존
  (esbuild `*.bundled-*.mjs` 패턴)
- `.cts` 는 ZTS 가 CJS-only 로 취급해 ESM 구문을 거부하므로 파싱 단계에서만
  `.ts` 로 가장 (에러 메시지에는 실제 경로 사용)

비범위: 자동 탐색 (#2102), BuildOptions 머지 (#2101), 함수형 config (#2103).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ohah ohah added the enhancement New feature or request label Apr 28, 2026
@ohah ohah self-assigned this Apr 28, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

Smoke Test Results (CI)

Smoke Test Results

Project ZTS Size Time esbuild Size Time rolldown Size Time rspack Size Time Output
lodash-es OK 47KB 51ms OK 64KB 55ms OK 99KB 627ms OK 122KB 131ms MATCH
preact OK 13KB 7ms OK 15KB 9ms OK 13KB 122ms OK 13KB 112ms MATCH
date-fns OK 37KB 26ms OK 47KB 45ms OK 77KB 134ms OK 102KB 156ms MATCH
uuid OK 1.9KB 4ms OK 2.1KB 8ms OK 2.0KB 106ms OK 3.9KB 108ms MATCH
zod OK 101KB 17ms OK 119KB 17ms OK 98KB 128ms OK 147KB 127ms MATCH
axios OK 344KB 26ms FAIL 436KB 34ms OK 399KB 138ms OK 411KB 162ms MATCH
toolkit OK 37KB 20ms OK 48KB 18ms OK 33KB 122ms OK 126KB 129ms MATCH
rxjs OK 323KB 30ms OK 367KB 38ms OK 308KB 157ms OK 325KB 142ms MATCH
immer OK 16KB 8ms OK 20KB 11ms OK 18KB 112ms OK 36KB 116ms MATCH
superjson OK 23KB 7ms OK 26KB 13ms OK 24KB 124ms OK 32KB 118ms MATCH
express OK 779KB 44ms OK 1138KB 61ms OK 908KB 166ms OK 917KB 173ms MATCH
react OK 15KB 5ms OK 19KB 8ms OK 4.2KB 107ms OK 18KB 109ms MATCH
commander OK 67KB 12ms OK 119KB 13ms OK 100KB 116ms OK 121KB 120ms MATCH
eventemitter3 OK 6.7KB 4ms OK 7.8KB 8ms OK 9.2KB 109ms OK 10KB 113ms MATCH
ms OK 2.7KB 3ms OK 4.3KB 7ms OK 4.0KB 111ms OK 5.0KB 106ms MATCH
dotenv OK 14KB 5ms OK 14KB 8ms OK 12KB 117ms OK 14KB 114ms MATCH
jsonwebtoken OK 112KB 13ms OK 137KB 19ms OK 141KB 138ms OK 159KB 122ms MATCH
bcryptjs OK 32KB 8ms OK 46KB 10ms OK 47KB 118ms OK 60KB 112ms MATCH
clsx OK 0.6KB 3ms OK 0.6KB 7ms OK 0.7KB 108ms OK 1.5KB 108ms MATCH
tiny-invariant OK 0.5KB 3ms OK 0.5KB 7ms OK 0.5KB 108ms OK 1.5KB 110ms MATCH
tanstack-query OK 45KB 10ms OK 57KB 12ms OK 47KB 121ms OK 59KB 117ms MATCH
fast-glob OK 161KB 18ms OK 199KB 24ms OK 187KB 137ms OK 201KB 128ms MATCH
micromatch OK 79KB 12ms OK 100KB 14ms OK 100KB 134ms OK 108KB 120ms MATCH
semver OK 53KB 9ms OK 66KB 13ms OK 52KB 127ms OK 67KB 116ms MATCH
debug OK 20KB 6ms FAIL 25KB 10ms OK 24KB 118ms OK 28KB 114ms MATCH
chalk OK 13KB 5ms OK 15KB 9ms OK 14KB 107ms OK 17KB 115ms MATCH
yaml OK 205KB 19ms OK 261KB 21ms OK 228KB 130ms OK 284KB 127ms MATCH
yargs OK 165KB 17ms OK 185KB 20ms OK 167KB 125ms OK 227KB 132ms MATCH
effect OK 340KB 191ms OK 477KB 162ms OK 368KB 274ms OK 1460KB 244ms MATCH
vue OK 1058KB 100ms OK 1307KB 72ms OK 1069KB 223ms OK 1216KB 182ms MATCH
svelte OK 1.5KB 16ms OK 4.7KB 18ms OK 3.5KB 119ms OK 197KB 129ms MATCH
svelte-mount OK 81KB 27ms OK 113KB 29ms OK 93KB 136ms OK 459KB 157ms MATCH
svelte-mount-min OK 12KB 46ms OK 37KB 30ms OK 28KB 137ms OK 22KB 198ms MATCH
svelte-full OK 88KB 27ms OK 121KB 29ms OK 104KB 134ms OK 462KB 162ms MATCH
svelte-full-min OK 14KB 46ms OK 40KB 31ms OK 30KB 137ms OK 24KB 202ms MATCH
solid-js OK 0.3KB 6ms OK 2.4KB 9ms OK 2.2KB 108ms OK 23KB 113ms MATCH
three OK 243KB 137ms OK 296KB 73ms OK 276KB 186ms OK 1280KB 253ms MATCH
graphql OK 53KB 24ms OK 604KB 33ms OK 547KB 145ms OK 100KB 119ms MATCH
supabase OK 309KB 31ms OK 759KB 32ms OK 706KB 163ms OK 779KB 150ms MATCH
mobx OK 135KB 25ms OK 87KB 16ms OK 73KB 121ms OK 190KB 133ms MATCH
jotai OK 20KB 7ms OK 23KB 10ms OK 20KB 118ms OK 26KB 114ms MATCH
mitt OK 0.6KB 3ms OK 0.6KB 7ms OK 0.7KB 113ms OK 1.5KB 111ms MATCH
zustand OK 1.1KB 3ms OK 1.2KB 7ms OK 1.3KB 112ms OK 2.3KB 108ms MATCH
valtio OK 7.4KB 6ms OK 7.5KB 8ms OK 8.3KB 121ms OK 24KB 112ms MATCH
react-dom OK 444KB 39ms OK 539KB 24ms OK 447KB 153ms OK 534KB 128ms MATCH
d3 OK 108KB 62ms OK 100KB 91ms OK 96KB 185ms OK 150KB 198ms MATCH
hono OK 41KB 9ms OK 59KB 13ms OK 52KB 118ms OK 68KB 117ms MATCH
dayjs OK 10KB 5ms OK 14KB 8ms OK 11KB 119ms OK 8.9KB 111ms MATCH
nanoid OK 0.8KB 3ms OK 0.9KB 7ms OK 0.9KB 109ms OK 2.6KB 109ms MATCH
zlib OK 95KB 20ms OK 112KB 16ms OK 102KB 132ms OK 222KB 130ms MATCH
fp-ts OK 2.4KB 9ms OK 70KB 14ms OK 100KB 116ms OK 50KB 118ms MATCH
neverthrow OK 11KB 5ms OK 18KB 9ms OK 13KB 111ms OK 19KB 110ms MATCH
drizzle-orm OK 13KB 13ms OK 30KB 28ms OK 14KB 116ms OK 35KB 125ms MATCH
tslib OK 0.8KB 6ms OK 0.8KB 8ms OK 0.8KB 117ms OK 18KB 110ms MATCH
iconv-lite OK 303KB 10ms OK 543KB 15ms OK 319KB 123ms OK 325KB 118ms MATCH
qs OK 76KB 12ms OK 95KB 23ms OK 81KB 122ms OK 92KB 117ms MATCH
change-case OK 3.0KB 4ms OK 3.2KB 7ms OK 3.3KB 107ms OK 8.0KB 113ms MATCH
path-to-regexp OK 7.5KB 5ms OK 14KB 10ms OK 8.0KB 122ms OK 15KB 117ms MATCH
mime-types OK 178KB 12ms OK 235KB 17ms OK 198KB 125ms OK 164KB 136ms MATCH
ajv OK 209KB 22ms OK 243KB 22ms OK 208KB 140ms OK 239KB 136ms MATCH
cac OK 16KB 6ms OK 18KB 9ms OK 16KB 129ms OK 19KB 117ms MATCH
defu OK 1.9KB 4ms OK 2.1KB 8ms OK 1.8KB 117ms OK 3.0KB 114ms MATCH
pathe OK 3.0KB 6ms OK 3.4KB 9ms OK 3.0KB 114ms OK 13KB 115ms MATCH
destr OK 2.0KB 3ms OK 2.1KB 7ms OK 1.8KB 114ms OK 3.1KB 111ms MATCH
hookable OK 5.3KB 4ms OK 5.9KB 8ms OK 5.2KB 128ms OK 9.3KB 112ms MATCH
minimatch OK 45KB 11ms OK 56KB 13ms OK 47KB 125ms OK 90KB 121ms MATCH
cheerio OK 462KB 80ms OK 2186KB 85ms OK 1747KB 262ms OK 2387KB 214ms MATCH
is-glob OK 4.0KB 4ms OK 6.4KB 7ms OK 4.9KB 113ms OK 6.0KB 106ms MATCH
glob-parent OK 5.3KB 4ms OK 8.4KB 8ms OK 6.3KB 109ms OK 7.9KB 111ms MATCH
escape-string-regexp OK 0.3KB 3ms OK 0.4KB 7ms OK 0.4KB 103ms OK 1.5KB 109ms MATCH
fast-deep-equal OK 1.5KB 3ms OK 2.9KB 7ms OK 2.3KB 104ms OK 3.2KB 109ms MATCH
deepmerge OK 4.0KB 3ms OK 5.5KB 7ms OK 4.5KB 107ms OK 6.0KB 111ms MATCH
color-convert OK 23KB 8ms OK 30KB 10ms OK 27KB 122ms OK 27KB 109ms MATCH
picomatch OK 46KB 9ms OK 58KB 11ms OK 55KB 118ms OK 61KB 113ms MATCH
type-is OK 186KB 13ms OK 244KB 16ms OK 210KB 119ms OK 179KB 135ms MATCH
object-assign OK 2.1KB 3ms OK 3.8KB 7ms OK 2.8KB 109ms OK 4.3KB 106ms MATCH
has-flag OK 0.4KB 3ms OK 0.5KB 7ms OK 1.5KB 109ms OK 1.7KB 110ms MATCH
p-limit OK 2.6KB 4ms OK 3.0KB 7ms OK 2.7KB 112ms OK 5.2KB 110ms MATCH
strip-ansi OK 0.7KB 3ms OK 0.8KB 7ms OK 0.8KB 107ms OK 2.2KB 108ms MATCH
ansi-regex OK 0.4KB 3ms OK 0.5KB 7ms OK 0.4KB 110ms OK 1.8KB 110ms MATCH
wrap-ansi OK 31KB 6ms OK 35KB 10ms OK 34KB 108ms OK 38KB 113ms MATCH
supports-color OK 3.6KB 3ms OK 3.8KB 7ms OK 4.6KB 117ms OK 5.7KB 111ms MATCH
cross-spawn OK 14KB 6ms OK 18KB 11ms OK 15KB 114ms OK 19KB 111ms MATCH
lru-cache OK 21KB 8ms OK 23KB 10ms OK 22KB 111ms OK 18KB 114ms MATCH
signal-exit OK 5.2KB 4ms OK 6.8KB 7ms OK 6.5KB 129ms OK 12KB 112ms MATCH
which OK 6.8KB 5ms OK 9.5KB 9ms OK 7.7KB 117ms OK 8.7KB 111ms MATCH
string-width OK 23KB 5ms OK 25KB 10ms OK 25KB 108ms OK 27KB 113ms MATCH
safe-buffer OK 0.5KB 3ms OK 3.8KB 7ms OK 1.7KB 104ms OK 3.8KB 110ms MATCH
bytes OK 3.4KB 3ms OK 4.3KB 8ms OK 4.3KB 110ms OK 5.5KB 106ms MATCH
depd OK 8.6KB 4ms OK 12KB 8ms OK 11KB 112ms OK 13KB 109ms MATCH
merge-descriptors OK 1.0KB 3ms OK 2.3KB 7ms OK 1.8KB 104ms OK 2.9KB 105ms MATCH
content-type OK 4.3KB 3ms OK 5.3KB 7ms OK 4.2KB 112ms OK 6.0KB 108ms MATCH
cookie OK 3.4KB 4ms OK 9.8KB 8ms OK 5.6KB 109ms OK 13KB 106ms MATCH
cjs-define-property-member-value OK 0.7KB 3ms OK 2.0KB 6ms OK 0.7KB 104ms OK 1.5KB 107ms MATCH
object-freeze-pure-call OK 0.2KB 3ms OK 0.2KB 6ms OK 0.2KB 113ms OK 1.1KB 106ms MATCH
object-assign-pure-call OK 0.2KB 3ms OK 0.2KB 6ms OK 0.2KB 111ms OK 1.1KB 107ms MATCH
cjs-esmodule-marker-pruning OK 0.7KB 3ms OK 2.0KB 6ms OK 0.7KB 110ms OK 1.5KB 106ms MATCH
cjs-module-exports-object-member-value OK 0.7KB 3ms OK 2.0KB 6ms OK 0.6KB 104ms OK 2.4KB 105ms MATCH
on-finished OK 5.2KB 4ms OK 6.9KB 8ms OK 6.6KB 109ms OK 8.3KB 109ms MATCH
statuses OK 3.7KB 3ms OK 5.8KB 7ms OK 5.3KB 113ms OK 6.1KB 109ms MATCH
etag OK 1.9KB 3ms OK 3.7KB 7ms OK 3.3KB 109ms OK 4.6KB 107ms MATCH
vary OK 3.0KB 3ms OK 3.7KB 7ms OK 3.5KB 110ms OK 5.1KB 106ms MATCH
flat OK 1.1KB 3ms OK 1.3KB 7ms OK 1.2KB 104ms OK 4.9KB 111ms MATCH
retry OK 6.3KB 4ms OK 8.6KB 7ms OK 7.0KB 118ms OK 7.3KB 107ms MATCH
camelcase OK 3.5KB 3ms OK 3.7KB 7ms OK 3.5KB 115ms OK 4.5KB 108ms MATCH
decamelize OK 1.2KB 3ms OK 1.3KB 7ms OK 1.3KB 109ms OK 3.0KB 108ms MATCH
memoize-one OK 1.2KB 3ms OK 3.1KB 7ms OK 2.3KB 114ms OK 2.4KB 111ms MATCH
rfdc OK 5.9KB 4ms OK 8.2KB 7ms OK 6.4KB 115ms OK 7.7KB 108ms MATCH
ohash OK 3.7KB 4ms OK 4.1KB 7ms OK 3.9KB 113ms OK 4.6KB 107ms MATCH
nanoevents OK 0.5KB 3ms OK 0.5KB 7ms OK 0.5KB 105ms OK 1.6KB 108ms MATCH
typebox OK 106KB 21ms OK 116KB 28ms OK 123KB 133ms OK 182KB 150ms MATCH
ts-pattern OK 10KB 6ms OK 12KB 9ms OK 11KB 117ms OK 9.6KB 110ms MATCH
valibot OK 6.1KB 20ms OK 6.8KB 17ms OK 8.0KB 126ms OK 193KB 131ms MATCH
ts-results-es OK 19KB 5ms OK 22KB 8ms OK 26KB 111ms OK 34KB 114ms MATCH
remeda OK 2.3KB 13ms OK 2.6KB 19ms OK 2.5KB 114ms OK 3.7KB 121ms MATCH
nanostores OK 4.4KB 5ms OK 5.6KB 8ms OK 4.6KB 106ms OK 8.2KB 113ms MATCH
ky OK 26KB 7ms OK 30KB 10ms OK 30KB 113ms OK 49KB 114ms MATCH
typedi OK 13KB 5ms OK 27KB 9ms OK 28KB 112ms OK 25KB 112ms MATCH
io-ts OK 15KB 15ms OK 104KB 17ms OK 117KB 123ms OK 102KB 123ms MATCH
type-fest OK 0.1KB 2ms OK 0.1KB 6ms OK 0.1KB 103ms OK 0.9KB 106ms MATCH
arktype OK 258KB 30ms OK 297KB 30ms OK 273KB 144ms OK 382KB 152ms MATCH
kysely OK 226KB 31ms OK 371KB 39ms OK 357KB 138ms OK 471KB 167ms MATCH
lodash-es@es5 OK 12KB 34ms OK 18KB 55ms OK 28KB 138ms FAIL - 0ms MATCH
clsx@es5 OK 0.6KB 3ms OK 0.6KB 7ms OK 0.6KB 123ms FAIL - 0ms MATCH
ms@es5 OK 2.6KB 3ms OK 4.5KB 8ms OK 4.0KB 108ms FAIL - 0ms MATCH
deepmerge@es5 OK 4.0KB 3ms OK 5.7KB 8ms OK 4.5KB 113ms FAIL - 0ms MATCH
fast-deep-equal@es5 OK 1.5KB 3ms OK 3.0KB 8ms OK 2.3KB 105ms FAIL - 0ms MATCH
semver@es5 OK 63KB 10ms FAIL - 11ms OK 52KB 115ms FAIL - 0ms MATCH
lodash-es@es2015 OK 12KB 37ms OK 18KB 54ms OK 28KB 146ms FAIL - 0ms MATCH
superjson@es2015 OK 23KB 7ms OK 27KB 12ms OK 24KB 110ms FAIL - 0ms MATCH
flat@es2017 OK 1.1KB 3ms OK 1.3KB 7ms OK 1.2KB 103ms FAIL - 0ms MATCH
defu@es2017 OK 1.9KB 3ms OK 2.8KB 7ms OK 1.8KB 107ms FAIL - 0ms MATCH
picomatch@es2018 OK 46KB 9ms OK 58KB 11ms OK 55KB 117ms FAIL - 0ms MATCH
semver@es2019 OK 53KB 8ms OK 66KB 12ms OK 52KB 120ms FAIL - 0ms MATCH
clsx@es2019 OK 0.6KB 3ms OK 0.6KB 6ms OK 0.6KB 114ms FAIL - 0ms MATCH
nanoid@es2019 OK 0.8KB 3ms OK 1.0KB 7ms OK 0.9KB 126ms FAIL - 0ms MATCH
dayjs@es2020 OK 10KB 5ms OK 14KB 8ms OK 11KB 108ms FAIL - 0ms MATCH
ohash@es2020 OK 3.8KB 4ms OK 4.8KB 8ms OK 3.9KB 106ms FAIL - 0ms MATCH
lru-cache@es2021 OK 31KB 9ms OK 35KB 10ms OK 22KB 111ms FAIL - 0ms MATCH
nanostores@es2021 OK 1.7KB 4ms OK 2.2KB 8ms OK 1.6KB 110ms FAIL - 0ms MATCH
lodash-es@chrome80 OK 47KB 35ms OK 64KB 55ms OK 99KB 155ms FAIL - 0ms MATCH
clsx@chrome49 OK 0.6KB 3ms OK 0.6KB 7ms OK 0.7KB 107ms FAIL - 0ms MATCH
dayjs@safari14 OK 10KB 5ms OK 14KB 8ms OK 11KB 114ms FAIL - 0ms MATCH
nanoid@node16 OK 0.8KB 3ms OK 0.9KB 7ms OK 0.9KB 106ms FAIL - 0ms DIFF

Size Comparison (ZTS vs smallest of esbuild/rolldown/rspack)

Project ZTS esbuild rolldown rspack Baseline Ratio Status
react 15KB 19KB 4.2KB 18KB rolldown 3.60x
mobx 135KB 87KB 73KB 190KB rolldown 1.85x
lru-cache@es2021 31KB 35KB 22KB - rolldown 1.42x ⚠️
type-fest 0.1KB 0.1KB 0.1KB 0.9KB esbuild 1.35x ⚠️
cjs-module-exports-object-member-value 0.7KB 2.0KB 0.6KB 2.4KB rolldown 1.24x ⚠️
semver@es5 63KB - 52KB - rolldown 1.22x ⚠️
dotenv 14KB 14KB 12KB 14KB rolldown 1.17x ⚠️
lru-cache 21KB 23KB 22KB 18KB rspack 1.16x ⚠️
dayjs 10KB 14KB 11KB 8.9KB rspack 1.14x ⚠️
d3 108KB 100KB 96KB 150KB rolldown 1.12x ⚠️
toolkit 37KB 48KB 33KB 126KB rolldown 1.11x ⚠️
mime-types 178KB 235KB 198KB 164KB rspack 1.09x
ts-pattern 10KB 12KB 11KB 9.6KB rspack 1.08x
cjs-define-property-member-value 0.7KB 2.0KB 0.7KB 1.5KB rolldown 1.08x
destr 2.0KB 2.1KB 1.8KB 3.1KB rolldown 1.06x
rxjs 323KB 367KB 308KB 325KB rolldown 1.05x
cjs-esmodule-marker-pruning 0.7KB 2.0KB 0.7KB 1.5KB rolldown 1.04x
type-is 186KB 244KB 210KB 179KB rspack 1.04x
zod 101KB 119KB 98KB 147KB rolldown 1.03x
content-type 4.3KB 5.3KB 4.2KB 6.0KB rolldown 1.03x
defu@es2017 1.9KB 2.8KB 1.8KB - rolldown 1.03x
semver@es2019 53KB 66KB 52KB - rolldown 1.03x
semver 53KB 66KB 52KB 67KB rolldown 1.03x
preact 13KB 15KB 13KB 13KB rolldown 1.02x
defu 1.9KB 2.1KB 1.8KB 3.0KB rolldown 1.02x
ansi-regex 0.4KB 0.5KB 0.4KB 1.8KB rolldown 1.02x
nanostores@es2021 1.7KB 2.2KB 1.6KB - rolldown 1.02x
hookable 5.3KB 5.9KB 5.2KB 9.3KB rolldown 1.02x
pathe 3.0KB 3.4KB 3.0KB 13KB rolldown 1.01x
cac 16KB 18KB 16KB 19KB rolldown 1.01x
ajv 209KB 243KB 208KB 239KB rolldown 1.00x
jotai 20KB 23KB 20KB 26KB rolldown 1.00x
yargs 165KB 185KB 167KB 227KB rolldown 0.99x
react-dom 444KB 539KB 447KB 534KB rolldown 0.99x
vue 1058KB 1307KB 1069KB 1216KB rolldown 0.99x
decamelize 1.2KB 1.3KB 1.3KB 3.0KB rolldown 0.98x
valtio 7.4KB 7.5KB 8.3KB 24KB esbuild 0.98x
camelcase 3.5KB 3.7KB 3.5KB 4.5KB rolldown 0.98x
nanostores 4.4KB 5.6KB 4.6KB 8.2KB rolldown 0.97x
cross-spawn 14KB 18KB 15KB 19KB rolldown 0.97x
p-limit 2.6KB 3.0KB 2.7KB 5.2KB rolldown 0.96x
strip-ansi 0.7KB 0.8KB 0.8KB 2.2KB rolldown 0.95x
tanstack-query 45KB 57KB 47KB 59KB rolldown 0.95x
minimatch 45KB 56KB 47KB 90KB rolldown 0.95x
ohash@es2020 3.8KB 4.8KB 3.9KB - rolldown 0.95x
iconv-lite 303KB 543KB 319KB 325KB rolldown 0.95x
arktype 258KB 297KB 273KB 382KB rolldown 0.94x
superjson@es2015 23KB 27KB 24KB - rolldown 0.94x
qs 76KB 95KB 81KB 92KB rolldown 0.94x
zlib 95KB 112KB 102KB 222KB rolldown 0.94x
supports-color 3.6KB 3.8KB 4.6KB 5.7KB esbuild 0.94x
ohash 3.7KB 4.1KB 3.9KB 4.6KB rolldown 0.93x
clsx 0.6KB 0.6KB 0.7KB 1.5KB esbuild 0.93x
clsx@chrome49 0.6KB 0.6KB 0.7KB - esbuild 0.93x
clsx@es5 0.6KB 0.6KB 0.6KB - esbuild 0.93x
tslib 0.8KB 0.8KB 0.8KB 18KB rolldown 0.93x
path-to-regexp 7.5KB 14KB 8.0KB 15KB rolldown 0.93x
clsx@es2019 0.6KB 0.6KB 0.6KB - esbuild 0.93x
rfdc 5.9KB 8.2KB 6.4KB 7.7KB rolldown 0.93x
superjson 23KB 26KB 24KB 32KB rolldown 0.93x
drizzle-orm 13KB 30KB 14KB 35KB rolldown 0.92x
wrap-ansi 31KB 35KB 34KB 38KB rolldown 0.92x
effect 340KB 477KB 368KB 1460KB rolldown 0.92x
change-case 3.0KB 3.2KB 3.3KB 8.0KB esbuild 0.92x
immer 16KB 20KB 18KB 36KB rolldown 0.92x
has-flag 0.4KB 0.5KB 1.5KB 1.7KB esbuild 0.92x
typebox 106KB 116KB 123KB 182KB esbuild 0.92x
remeda 2.3KB 2.6KB 2.5KB 3.7KB rolldown 0.91x
string-width 23KB 25KB 25KB 27KB esbuild 0.91x
dayjs@es2020 10KB 14KB 11KB - rolldown 0.91x
dayjs@safari14 10KB 14KB 11KB - rolldown 0.91x
flat@es2017 1.1KB 1.3KB 1.2KB - rolldown 0.91x
flat 1.1KB 1.3KB 1.2KB 4.9KB rolldown 0.91x
valibot 6.1KB 6.8KB 8.0KB 193KB esbuild 0.91x
uuid 1.9KB 2.1KB 2.0KB 3.9KB rolldown 0.91x
zustand 1.1KB 1.2KB 1.3KB 2.3KB esbuild 0.90x
yaml 205KB 261KB 228KB 284KB rolldown 0.90x
retry 6.3KB 8.6KB 7.0KB 7.3KB rolldown 0.89x
chalk 13KB 15KB 14KB 17KB rolldown 0.89x
which 6.8KB 9.5KB 7.7KB 8.7KB rolldown 0.88x
ky 26KB 30KB 30KB 49KB rolldown 0.88x
nanoevents 0.5KB 0.5KB 0.5KB 1.6KB esbuild 0.88x
mitt 0.6KB 0.6KB 0.7KB 1.5KB esbuild 0.88x
three 243KB 296KB 276KB 1280KB rolldown 0.88x
tiny-invariant 0.5KB 0.5KB 0.5KB 1.5KB esbuild 0.88x
deepmerge@es5 4.0KB 5.7KB 4.5KB - rolldown 0.87x
deepmerge 4.0KB 5.5KB 4.5KB 6.0KB rolldown 0.87x
svelte-mount 81KB 113KB 93KB 459KB rolldown 0.87x
escape-string-regexp 0.3KB 0.4KB 0.4KB 1.5KB esbuild 0.87x
vary 3.0KB 3.7KB 3.5KB 5.1KB rolldown 0.87x
ts-results-es 19KB 22KB 26KB 34KB esbuild 0.86x
color-convert 23KB 30KB 27KB 27KB rolldown 0.86x
fast-glob 161KB 199KB 187KB 201KB rolldown 0.86x
axios 344KB 436KB 399KB 411KB rolldown 0.86x
object-freeze-pure-call 0.2KB 0.2KB 0.2KB 1.1KB esbuild 0.86x
express 779KB 1138KB 908KB 917KB rolldown 0.86x
eventemitter3 6.7KB 7.8KB 9.2KB 10KB esbuild 0.86x
nanoid@es2019 0.8KB 1.0KB 0.9KB - rolldown 0.85x
nanoid 0.8KB 0.9KB 0.9KB 2.6KB rolldown 0.85x
nanoid@node16 0.8KB 0.9KB 0.9KB - rolldown 0.85x
picomatch@es2018 46KB 58KB 55KB - rolldown 0.85x
picomatch 46KB 58KB 55KB 61KB rolldown 0.85x
svelte-full 88KB 121KB 104KB 462KB rolldown 0.84x
object-assign-pure-call 0.2KB 0.2KB 0.2KB 1.1KB esbuild 0.84x
glob-parent 5.3KB 8.4KB 6.3KB 7.9KB rolldown 0.83x
debug 20KB 25KB 24KB 28KB rolldown 0.82x
jsonwebtoken 112KB 137KB 141KB 159KB esbuild 0.82x
depd 8.6KB 12KB 11KB 13KB rolldown 0.82x
is-glob 4.0KB 6.4KB 4.9KB 6.0KB rolldown 0.81x
bytes 3.4KB 4.3KB 4.3KB 5.5KB esbuild 0.81x
signal-exit 5.2KB 6.8KB 6.5KB 12KB rolldown 0.80x
micromatch 79KB 100KB 100KB 108KB esbuild 0.79x
neverthrow 11KB 18KB 13KB 19KB rolldown 0.79x
on-finished 5.2KB 6.9KB 6.6KB 8.3KB rolldown 0.79x
date-fns 37KB 47KB 77KB 102KB esbuild 0.78x
hono 41KB 59KB 52KB 68KB rolldown 0.78x
object-assign 2.1KB 3.8KB 2.8KB 4.3KB rolldown 0.75x
lodash-es@chrome80 47KB 64KB 99KB - esbuild 0.73x
lodash-es 47KB 64KB 99KB 122KB esbuild 0.73x
statuses 3.7KB 5.8KB 5.3KB 6.1KB rolldown 0.69x
bcryptjs 32KB 46KB 47KB 60KB esbuild 0.68x
lodash-es@es2015 12KB 18KB 28KB - esbuild 0.68x
lodash-es@es5 12KB 18KB 28KB - esbuild 0.68x
commander 67KB 119KB 100KB 121KB rolldown 0.67x
ms@es5 2.6KB 4.5KB 4.0KB - rolldown 0.67x
ms 2.7KB 4.3KB 4.0KB 5.0KB rolldown 0.66x
fast-deep-equal@es5 1.5KB 3.0KB 2.3KB - rolldown 0.65x
fast-deep-equal 1.5KB 2.9KB 2.3KB 3.2KB rolldown 0.65x
kysely 226KB 371KB 357KB 471KB rolldown 0.63x
cookie 3.4KB 9.8KB 5.6KB 13KB rolldown 0.61x
svelte-full-min 14KB 40KB 30KB 24KB rspack 0.60x
merge-descriptors 1.0KB 2.3KB 1.8KB 2.9KB rolldown 0.59x
etag 1.9KB 3.7KB 3.3KB 4.6KB rolldown 0.59x
svelte-mount-min 12KB 37KB 28KB 22KB rspack 0.55x
typedi 13KB 27KB 28KB 25KB rspack 0.55x
memoize-one 1.2KB 3.1KB 2.3KB 2.4KB rolldown 0.54x
graphql 53KB 604KB 547KB 100KB rspack 0.53x
supabase 309KB 759KB 706KB 779KB rolldown 0.44x
svelte 1.5KB 4.7KB 3.5KB 197KB rolldown 0.44x
safe-buffer 0.5KB 3.8KB 1.7KB 3.8KB rolldown 0.32x
cheerio 462KB 2186KB 1747KB 2387KB rolldown 0.26x
io-ts 15KB 104KB 117KB 102KB rspack 0.15x
solid-js 0.3KB 2.4KB 2.2KB 23KB rolldown 0.13x
fp-ts 2.4KB 70KB 100KB 50KB rspack 0.05x

Average ratio (vs smallest): 0.89x | Smaller: 113 | Similar(±10%): 20 | Larger: 11

Auto-generated by CI on 2026-04-28 09:48 UTC

- existsSync precheck 제거 (TOCTOU 회피 + syscall 절감) — readFileSync /
  import() 의 ENOENT 를 catch 해 동일 메시지 throw.
- 죽은 cache-bust query (`?t=${Date.now()}`) 제거 — Phase 1 scope 에서 같은
  프로세스 다중 reload 가 없음. watch reload 는 #2107 에서 별도 처리.
- unlinkSync 실패 시 console.warn — silent swallow 방지.
- `.cts` parser 우회 주석에 `parser.zig` 위치 + `transpile()` follow-up
  FIXME 추가.
- 테스트의 `resolveImportPath()` 헬퍼를 단일 호출 지점에 inline.

Part of #2099 / #2100.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ohah ohah merged commit 04bec93 into main Apr 28, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(config): .ts/.js config self-compile loader

1 participant