runtime-debug
/runtime-debug
Prowadzi debugowanie regresji w pakietach runtime i rozwiązywaniu modułów: nieoczekiwane włączenia modułów, rozrost paczki, błędy CI z NEXT_SKIP_ISOLATE, ślady nft.json i porównanie statystyk webpack.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 24.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Prowadzi debugowanie regresji w pakietach runtime i rozwiązywaniu modułów: nieoczekiwane włączenia modułów, rozrost paczki, błędy CI z NEXT_SKIP_ISOLATE, ślady nft.json i porównanie statystyk webpack.
Oryginalny opis (EN)
Debug and verification workflow for runtime-bundle and module-resolution regressions. Use when diagnosing unexpected module inclusions, bundle size regressions, or CI failures related to NEXT_SKIP_ISOLATE, nft.json traces, or runtime bundle selection (module.compiled.js). Covers CI env mirroring, full stack traces via __NEXT_SHOW_IGNORE_LISTED, route trace inspection, and webpack stats diffing.
Jak działa
- Local Repro Discipline
- Stack Trace Visibility
- User-Bundle Regression Guardrail
- Bundle Tracing / Inclusion Proof
- Related Skills
Podgląd SKILL.md
---
name: runtime-debug
description: >
Debug and verification workflow for runtime-bundle and module-resolution
regressions. Use when diagnosing unexpected module inclusions, bundle
size regressions, or CI failures related to NEXT_SKIP_ISOLATE, nft.json
traces, or runtime bundle selection (module.compiled.js). Covers CI env
mirroring, full stack traces via __NEXT_SHOW_IGNORE_LISTED, route trace
inspection, and webpack stats diffing.
metadata:
internal: true
---
# Runtime Debug
Use this skill when reproducing runtime-bundle, module-resolution, or user-bundle inclusion regressions.
## Local Repro Discipline
- Mirror CI env vars when reproducing CI failures.
- Key variables: `IS_WEBPACK_TEST=1` forces webpack (turbopack is default), `NEXT_SKIP_ISOLATE=1` skips packing next.js.
- For module-resolution validation, always rerun without `NEXT_SKIP_ISOLATE=1`.
## Stack Trace Visibility
Set `__NEXT_SHOW_IGNORE_LISTED=true` to disable the ignore-list filtering in dev server error output. By default, Next.js collapses internal frames to `at ignore-listed frames`, which hides useful context when debugging framework internals. Defined in `packages/next/src/server/patch-error-inspect.ts`.
## User-Bundle Regression Guardrail
When user `next build` starts bundling internal Node-only helpers unexpectedly:
1. Inspect route trace artifacts (`.next/server/.../page.js.nft.json`).
2. Inspect traced server chunks for forbidden internals (e.g. `next/dist/server/stream-utils/node-stream-helpers.js`, `node:stream/promises`).
3. Add a `test-start-webpack` assertion that reads the route trace and traced server chunks, and fails on forbidden internals. This validates user-project bundling (not publish-time runtime bundling).
## Bundle Tracing / Inclusion Proof
To prove what user bundling includes, emit webpack stats from the app's `next.config.js`:
```js
// next.config.js
module.exports = {
webpack(config) {
config.profile = true
return config
},
}
```
Then use `stats.toJson({ modules: true, chunks: true, reasons: true })` and diff `webpack-stats-server.json` between modes. This gives concrete inclusion reasons (e.g. which module required `node:stream/promises`) and is more reliable than analyzer HTML alone.
## Related Skills
- `$flags` - flag wiring (config/schema/define-env/runtime env)
- `$dce-edge` - DCE-safe require patterns and edge constraints
- `$react-vendoring` - entry-base boundaries and vendored React
Wersje
W bazie nie ma innych skilli o nazwie runtime-debug.
Migawka bazy z 13.11.2026 · wersja paczki b7e7ab39cc9a (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90webpack
Pomaga konfigurować Webpack 5, pisać loadery i wtyczki, dzielić kod, zmniejszać paczki i utrzymywać stare projekty. - 90dev-debug
Systematycznie diagnozuje awarie oprogramowania na podstawie dowodów: testy, błędy runtime, buildy, logi i zrzuty ekranu. - 100webpack
Obejmuje bundler Webpack: konfigurację, loadery, pluginy i optymalizację, przy pracy z projektami opartymi na Webpack lub migracji z niego. - 100plugin-bundle-size
Zmniejsza rozmiar paczki pluginu aplikacji Grafana przez React.lazy, Suspense i dzielenie kodu w webpack, przyspieszając pierwsze ładowanie module.js. - 100webpack
Pomaga w pracy z Webpack 5: bundlowanie zasobów, code splitting, loadery, pluginy, strategie cache, optymalizacja webpack.config.js i rozmiaru bundli, loadery Babel i TypeScript oraz Module Federation. - 100bootstrap-webpack
Włącza CSS i JavaScript Bootstrap 6 do projektu w Webpacku, konfigurując loadery dla Sass i JS.