RepoPilot

List the exact source file paths you can see in this repository and what each do

About vercel/next.js · 2 messages · last activity 7/3/2026

Question

List the exact source file paths you can see in this repository and what each does.

RepoPilot

Based on the repository data provided, here are the exact source file paths visible:

  1. [packages/next/src/bin/next.ts] — The CLI entry point for Next.js. Defines command handlers for build, experimental-analyze, and static-routes-info commands with their options and arguments. Examples include build options like --turbo, --debug, --profile, and the experimental analyzer setup [packages/next/src/bin/next.ts:L182-L301, L742-L772].

  2. [packages/next/src/cli/internal/static-routes-info.js] — Imported dynamically to handle the static-routes-info CLI command. Exports the staticRoutesInfoCli function that processes route information with sorting and filtering options.

  3. [packages/next/src/cli/next-analyze.js] — Imported dynamically to handle the experimental-analyze command, which analyzes production bundle output with an interactive web UI (Turbopack-only).

  4. [packages/next/src/bundles/webpack/packages/HotModuleReplacement.runtime.js] — Webpack's Hot Module Replacement (HMR) runtime implementation. Contains functions like hotCheck(), hotApply(), internalApply(), and trackBlockingPromise() that manage the HMR state machine and module updates [packages/next/src/bundles/webpack/packages/HotModuleReplacement.runtime.js:L259-L352].

  5. [packages/next/src/bundles/webpack/packages/SourceMapDevToolModuleOptionsPlugin.js] — A webpack plugin module that re-exports SourceMapDevToolModuleOptionsPlugin from webpack [packages/next/src/bundles/webpack/packages/SourceMapDevToolModuleOptionsPlugin.js:L1-L2].

FOLLOW_UPS:

  • What does the nextBuild function do in detail?
  • How does Turbopack differ from webpack in Next.js builds?
  • What CLI commands are available in Next.js?

Want to ask your own question?

Open chat for vercel/next.js

Public Q&A. Generated by RepoPilot from the actual source of vercel/next.js. AI answers can be incomplete or stale — verify before relying on them.