-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruntime-repos.json
More file actions
73 lines (73 loc) · 6.31 KB
/
Copy pathruntime-repos.json
File metadata and controls
73 lines (73 loc) · 6.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[
{
"name": "es-toolkit",
"repo": "toss/es-toolkit",
"sha": "5dc4477f838b8cee2b6b09af4f373be2b3aaaa54",
"sources": [
"src/**/*.ts"
],
"ignore": [
"**/*.spec.ts",
"src/compat/array/find.ts",
"src/compat/array/findLast.ts"
],
"install": "yarn install && yarn add @oxc-project/runtime@$OXC_RUNTIME_VERSION",
"test": "yarn vitest run --coverage=false --exclude '**/check-dist.spec.ts'",
"notes": "yarn 4 (PnP) via corepack; install adds @oxc-project/runtime so the transformer's lowered helper imports resolve. find.ts/findLast.ts ignored: their tests assert the runtime TypeError text 'doesMatch is not a function', which mangling renames (name-sensitivity, not a semantic bug). tests/check-dist.spec.ts excluded: it runs `yarn pack`->build (tsdown dts bundle) which fails on minified .ts because type-only exports are stripped -- a build/dts-tooling gate, not a runtime bug."
},
{
"name": "zod",
"repo": "colinhacks/zod",
"sha": "9f0a3d81221e3ab7c09ca4911ef35b54817869a4",
"sources": [
"packages/zod/src/**/*.ts"
],
"ignore": [
"**/*.test.ts",
"**/tests/**"
],
"install": "pnpm install --frozen-lockfile && pnpm --filter zod add @oxc-project/runtime@$OXC_RUNTIME_VERSION && cp \"$MONITOR_ROOT/fixtures/runtime/zod-vitest.config.mjs\" vitest.minified.mjs",
"test": "pnpm vitest run --config vitest.minified.mjs",
"notes": "pnpm monorepo. The zod vitest project hard-enables tsc typecheck (checker:tsc, projects:['packages/*']), which cannot be disabled via CLI and legitimately fails on minified .ts (types are stripped) -- a static type gate, not a runtime bug. install copies fixtures/runtime/zod-vitest.config.mjs (via $MONITOR_ROOT, exported by scripts/runtime-test.mjs) to vitest.minified.mjs, a standalone config that keeps zod's resolve conditions (@zod/source -> src), the fail-on-console setup, and all src/**/*.test.ts runtime tests, but sets typecheck.enabled=false. install also adds @oxc-project/runtime so the transformer's lowered helper imports resolve. All 168 runtime test files / 1959 runtime tests pass on minified source."
},
{
"name": "vue",
"repo": "vuejs/core",
"sha": "a2b40db9a83b36ed9da3a16403cf8f040262d73f",
"sources": [
"packages/*/src/**/*.ts"
],
"ignore": [
"packages/compiler-core/src/transforms/transformElement.ts"
],
"install": "pnpm install --frozen-lockfile && pnpm add -w @oxc-project/runtime@$OXC_RUNTIME_VERSION",
"test": "pnpm exec vitest run --project 'unit*'",
"notes": "pnpm monorepo (pnpm@11.9.0). vitest aliases `vue`/`vue/*`/`@vue/*` -> packages/*/src/index.ts (scripts/aliases.js), so tests execute the minified SOURCE directly; no build needed. test runs only the unit projects (`vitest run --project 'unit*'` = unit, unit-gc, unit-jsdom), skipping e2e/e2e-browser (playwright). install adds @oxc-project/runtime at the workspace root so the transformer's lowered helper imports resolve. IGNORE packages/compiler-core/src/transforms/transformElement.ts: NOT an oxc bug -- the minified output is correct JS (V8 runs it; binding graph provably preserved). The 377 failures come from a vite ssrTransform scope bug: vite's SSR import-rewriter does not treat switch blocks as lexical scopes (blockNodeTypeRE in packages/vite/src/node/ssr/ssrTransform.ts omits SwitchStatement), so a let/const in a switch case (here mangled classProp/styleProp/hasDynamicKey -> o/s/a, colliding with imports createObjectProperty/createSimpleExpression/createObjectExpression) is mis-scoped to the whole buildProps body; every same-named import reference in the function is left un-rewritten -> ReferenceError: o/a is not defined at runtime. Pinned toolchain: vite@8.1.0 (rolldown-vite) + vitest@4.1.9. This is a vitest/vite module-transform artifact, latent in stock vue and surfaced by our (correct) minification; same class as vitejs/vite#5472/#3803/#4049. Remove this ignore when vite fixes ssrTransform switch scoping. With the file ignored the other 231 src files minify green: 181 test files / 3607 tests pass."
},
{
"name": "svelte",
"repo": "sveltejs/svelte",
"sha": "c0987c09f816b5d7dcb5564d19c849f7e28b9e7a",
"sources": [
"packages/svelte/src/**/*.js"
],
"ignore": [],
"install": "pnpm install --frozen-lockfile && pnpm -F svelte add @oxc-project/runtime@$OXC_RUNTIME_VERSION",
"test": "pnpm exec vitest run --exclude '**/runtime-browser/test.ts'",
"notes": "pnpm monorepo (pnpm@10.4.0). vitest resolves `svelte`/`svelte/*` via a customResolver over packages/svelte/package.json `exports`, which all point at ./src/* (svelte 5 source is JS+JSDoc; there is no dist), so tests execute the minified SOURCE; no build needed. The compiler is also served from src (`svelte/compiler` -> ./src/compiler), so the snapshot tests that compare compiled OUTPUT stay invariant under semantically-correct minify. test excludes tests/runtime-browser/test.ts, which launches Playwright chromium (a browser gate, unavailable on the runner) -- the node-runnable SSR variant test-ssr.ts is kept. install adds @oxc-project/runtime for the transformer's lowered helper imports. Processed 369 files; 7557 tests / 32 files pass on minified source (63 skipped)."
},
{
"name": "solid",
"repo": "solidjs/solid",
"sha": "d2f81d546d5dff37aa25e4fa224e2192efec8c1a",
"sources": [
"packages/solid/src/**/*.ts",
"packages/solid/store/src/**/*.ts",
"packages/solid/web/src/**/*.ts"
],
"ignore": [],
"install": "pnpm install --frozen-lockfile && pnpm -F solid-js add @oxc-project/runtime@$OXC_RUNTIME_VERSION",
"test": "pnpm -F solid-js test",
"notes": "pnpm monorepo (pnpm@9.15.0). packages/solid/vite.config.mjs aliases solid-js -> packages/solid/src, solid-js/web -> web/src, solid-js/jsx-runtime -> src/jsx; the tests import ../src directly, so tests execute the minified SOURCE; no build needed. sources cover src + store/src + web/src, matching the repo's own vitest coverage `include` (the trees the spec/tsx suites exercise). test runs only the solid-js package's `vitest run` (via `-F solid-js`), skipping test-types (tsc --project, a type gate that fails on stripped types) and the sibling workspace packages. install adds @oxc-project/runtime for the transformer's lowered helper imports. Processed 23 files; 482 tests / 27 files pass on minified source."
}
]