Skip to content

fix(vibe-tests): repair report build (core dist .js + esnext target)#3268

Open
cixzhang wants to merge 1 commit into
mainfrom
navi/fix/vibe-report-build
Open

fix(vibe-tests): repair report build (core dist .js + esnext target)#3268
cixzhang wants to merge 1 commit into
mainfrom
navi/fix/vibe-report-build

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

What

Repairs the nightly vibe-test report build (build-report.ts, invoked by
deploy-report.ts Step 5), which has been failing since early June — independent of
the recent target rename.

Why

Two stacked breakages in internal/vibe-tests/app/vite.config.report.ts:

  1. Module resolution. The config aliased @astryxdesign/core subpath and root
    imports to dist/**/index.**mjs**, but core's build emits .js (its build:esm
    step uses --out-file-extension '.js' since the switch to the Babel CLI). Vite
    could not load the modules → Could not load .../dist/theme/index.mjs (ENOENT).
  2. Transpile target. After resolution is fixed, esbuild fails to transpile the
    bundled core to Vite's default es2020 target — Transforming destructuring … is not supported yet (135 errors) — because no build.target is set.

The daily Night Watch logs corroborate the timeline: the report deployed fine on
2026-06-20, then began failing ("Report deploy: Failed — build-report.ts error") on
2026-06-22, shortly after core moved to .js output.

Changes

  • Point the core aliases at dist/**/index.js (matching what core actually builds).
  • Set build.target: 'esnext' so esbuild doesn't downlevel core's modern Babel output.
    The report is an internal artifact viewed in current browsers; CSS targets stay modern
    (lightningcss, chrome 123) to preserve native light-dark().

No component source or public types touched. @astryxdesign/vibe-tests is a private
(unpublished) package, so no changeset.

Verification

  • build-report.ts now produces a self-contained 4-target report.html (~510 KB) — the
    rendered HTML includes the Astryx, Astryx+TW, Baseline, and HTML columns/data.
  • deploy-report.ts --dry-run completes end to end ("Report built but not deployed").
  • eslint clean; repo pre-commit gates (sync, package-boundaries, changesets,
    demo-media) all pass.

The nightly report build (build-report.ts → deploy-report.ts Step 5) has been
failing since early June, independent of the target rename:

- The report Vite config aliased @astryxdesign/core subpath/root imports to
  dist/**/index.mjs, but core's build emits .js (build:esm uses
  --out-file-extension '.js' since the Babel CLI switch). Vite could not load
  the modules → "Could not load .../dist/theme/index.mjs (ENOENT)".
- After fixing resolution, esbuild failed to transpile the bundled core to the
  default es2020 target ("Transforming destructuring ... is not supported yet",
  135 errors), because no build.target was set.

Point the aliases at dist/**/index.js and set build.target to 'esnext' so
esbuild doesn't downlevel core's modern Babel output. The report is an internal
artifact viewed in current browsers; CSS targets stay modern (lightningcss) to
preserve native light-dark().

Verified: build-report.ts produces a 4-target report.html (Astryx, Astryx+TW,
Baseline, HTML — including the Astryx+TW columns/data), and
deploy-report.ts --dry-run completes end to end. eslint clean.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 30, 2026
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jun 30, 2026 3:56am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants