next 15.0.4-canary.15 → 15.0.4-canary.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of next might be problematic. Click here for more details.

@@ -876,11 +876,7 @@ function normalizedPageToTurbopackStructureRoute(route, ext) {
876
876
  }
877
877
  function isPersistentCachingEnabled(config) {
878
878
  var _config_experimental_turbo;
879
- const unstableValue = (_config_experimental_turbo = config.experimental.turbo) == null ? void 0 : _config_experimental_turbo.unstablePersistentCaching;
880
- if (typeof unstableValue === 'number' && unstableValue > 1) {
881
- throw new Error('Persistent caching in this version of Turbopack is not as stable as expected. Upgrade to a newer version of Turbopack to use this feature with the expected stability.');
882
- }
883
- return !!unstableValue;
879
+ return ((_config_experimental_turbo = config.experimental.turbo) == null ? void 0 : _config_experimental_turbo.unstablePersistentCaching) || false;
884
880
  }
885
881
 
886
882
  //# sourceMappingURL=turbopack-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/server/dev/turbopack-utils.ts"],"sourcesContent":["import type { NextConfigComplete } from '../config-shared'\nimport loadJsConfig from '../../build/load-jsconfig'\nimport type {\n ServerFields,\n SetupOpts,\n} from '../lib/router-utils/setup-dev-bundler'\nimport type {\n Issue,\n StyledString,\n TurbopackResult,\n Endpoint,\n Entrypoints as RawEntrypoints,\n Update as TurbopackUpdate,\n WrittenEndpoint,\n} from '../../build/swc/types'\nimport {\n decodeMagicIdentifier,\n MAGIC_IDENTIFIER_REGEX,\n} from '../../shared/lib/magic-identifier'\nimport { bold, green, magenta, red } from '../../lib/picocolors'\nimport {\n type HMR_ACTION_TYPES,\n HMR_ACTIONS_SENT_TO_BROWSER,\n} from './hot-reloader-types'\nimport * as Log from '../../build/output/log'\nimport type { PropagateToWorkersField } from '../lib/router-utils/types'\nimport type { TurbopackManifestLoader } from './turbopack/manifest-loader'\nimport type { AppRoute, Entrypoints, PageRoute } from './turbopack/types'\nimport {\n type EntryKey,\n getEntryKey,\n splitEntryKey,\n} from './turbopack/entry-key'\nimport type ws from 'next/dist/compiled/ws'\nimport isInternal from '../../shared/lib/is-internal'\nimport { isMetadataRoute } from '../../lib/metadata/is-metadata-route'\nimport type { CustomRoutes } from '../../lib/load-custom-routes'\n\nexport async function getTurbopackJsConfig(\n dir: string,\n nextConfig: NextConfigComplete\n) {\n const { jsConfig } = await loadJsConfig(dir, nextConfig)\n return jsConfig ?? { compilerOptions: {} }\n}\n\n// An error generated from emitted Turbopack issues. This can include build\n// errors caused by issues with user code.\nexport class ModuleBuildError extends Error {\n name = 'ModuleBuildError'\n}\n\n// An error caused by an internal issue in Turbopack. These should be written\n// to a log file and details should not be shown to the user.\nexport class TurbopackInternalError extends Error {\n name = 'TurbopackInternalError'\n\n constructor(cause: Error) {\n super(cause.message)\n this.stack = cause.stack\n }\n}\n\n/**\n * Thin stopgap workaround layer to mimic existing wellknown-errors-plugin in webpack's build\n * to emit certain type of errors into cli.\n */\nexport function isWellKnownError(issue: Issue): boolean {\n const { title } = issue\n const formattedTitle = renderStyledStringToErrorAnsi(title)\n // TODO: add more well known errors\n if (\n formattedTitle.includes('Module not found') ||\n formattedTitle.includes('Unknown module type')\n ) {\n return true\n }\n\n return false\n}\n\nconst onceErrorSet = new Set()\n/**\n * Check if given issue is a warning to be display only once.\n * This mimics behavior of get-page-static-info's warnOnce.\n * @param issue\n * @returns\n */\nfunction shouldEmitOnceWarning(issue: Issue): boolean {\n const { severity, title, stage } = issue\n if (severity === 'warning' && title.value === 'Invalid page configuration') {\n if (onceErrorSet.has(issue)) {\n return false\n }\n onceErrorSet.add(issue)\n }\n if (\n severity === 'warning' &&\n stage === 'config' &&\n renderStyledStringToErrorAnsi(issue.title).includes(\"can't be external\")\n ) {\n if (onceErrorSet.has(issue)) {\n return false\n }\n onceErrorSet.add(issue)\n }\n\n return true\n}\n\n/// Print out an issue to the console which should not block\n/// the build by throwing out or blocking error overlay.\nexport function printNonFatalIssue(issue: Issue) {\n if (isRelevantWarning(issue) && shouldEmitOnceWarning(issue)) {\n Log.warn(formatIssue(issue))\n }\n}\n\nfunction isNodeModulesIssue(issue: Issue): boolean {\n if (issue.severity === 'warning' && issue.stage === 'config') {\n // Override for the externalize issue\n // `Package foo (serverExternalPackages or default list) can't be external`\n if (\n renderStyledStringToErrorAnsi(issue.title).includes(\"can't be external\")\n ) {\n return false\n }\n }\n\n return (\n issue.severity === 'warning' &&\n issue.filePath.match(/^(?:.*[\\\\/])?node_modules(?:[\\\\/].*)?$/) !== null\n )\n}\n\nexport function isRelevantWarning(issue: Issue): boolean {\n return issue.severity === 'warning' && !isNodeModulesIssue(issue)\n}\n\nexport function formatIssue(issue: Issue) {\n const { filePath, title, description, source } = issue\n let { documentationLink } = issue\n let formattedTitle = renderStyledStringToErrorAnsi(title).replace(\n /\\n/g,\n '\\n '\n )\n\n // TODO: Use error codes to identify these\n // TODO: Generalize adapting Turbopack errors to Next.js errors\n if (formattedTitle.includes('Module not found')) {\n // For compatiblity with webpack\n // TODO: include columns in webpack errors.\n documentationLink = 'https://nextjs.org/docs/messages/module-not-found'\n }\n\n let formattedFilePath = filePath\n .replace('[project]/', './')\n .replaceAll('/./', '/')\n .replace('\\\\\\\\?\\\\', '')\n\n let message = ''\n\n if (source && source.range) {\n const { start } = source.range\n message = `${formattedFilePath}:${start.line + 1}:${\n start.column + 1\n }\\n${formattedTitle}`\n } else if (formattedFilePath) {\n message = `${formattedFilePath}\\n${formattedTitle}`\n } else {\n message = formattedTitle\n }\n message += '\\n'\n\n if (\n source?.range &&\n source.source.content &&\n // ignore Next.js/React internals, as these can often be huge bundled files.\n !isInternal(filePath)\n ) {\n const { start, end } = source.range\n const { codeFrameColumns } = require('next/dist/compiled/babel/code-frame')\n\n message +=\n codeFrameColumns(\n source.source.content,\n {\n start: {\n line: start.line + 1,\n column: start.column + 1,\n },\n end: {\n line: end.line + 1,\n column: end.column + 1,\n },\n },\n { forceColor: true }\n ).trim() + '\\n\\n'\n }\n\n if (description) {\n message += renderStyledStringToErrorAnsi(description) + '\\n\\n'\n }\n\n // TODO: make it possible to enable this for debugging, but not in tests.\n // if (detail) {\n // message += renderStyledStringToErrorAnsi(detail) + '\\n\\n'\n // }\n\n // TODO: Include a trace from the issue.\n\n if (documentationLink) {\n message += documentationLink + '\\n\\n'\n }\n\n return message\n}\n\ntype IssueKey = `${Issue['severity']}-${Issue['filePath']}-${string}-${string}`\nexport type IssuesMap = Map<IssueKey, Issue>\nexport type EntryIssuesMap = Map<EntryKey, IssuesMap>\nexport type TopLevelIssuesMap = IssuesMap\n\nfunction getIssueKey(issue: Issue): IssueKey {\n return `${issue.severity}-${issue.filePath}-${JSON.stringify(\n issue.title\n )}-${JSON.stringify(issue.description)}`\n}\n\nexport function processTopLevelIssues(\n currentTopLevelIssues: TopLevelIssuesMap,\n result: TurbopackResult\n) {\n currentTopLevelIssues.clear()\n\n for (const issue of result.issues) {\n const issueKey = getIssueKey(issue)\n currentTopLevelIssues.set(issueKey, issue)\n }\n}\n\nexport function processIssues(\n currentEntryIssues: EntryIssuesMap,\n key: EntryKey,\n result: TurbopackResult,\n throwIssue: boolean,\n logErrors: boolean\n) {\n const newIssues = new Map<IssueKey, Issue>()\n currentEntryIssues.set(key, newIssues)\n\n const relevantIssues = new Set()\n\n for (const issue of result.issues) {\n if (\n issue.severity !== 'error' &&\n issue.severity !== 'fatal' &&\n issue.severity !== 'warning'\n )\n continue\n\n const issueKey = getIssueKey(issue)\n newIssues.set(issueKey, issue)\n\n if (issue.severity !== 'warning') {\n if (throwIssue) {\n const formatted = formatIssue(issue)\n relevantIssues.add(formatted)\n }\n // if we throw the issue it will most likely get handed and logged elsewhere\n else if (logErrors && isWellKnownError(issue)) {\n const formatted = formatIssue(issue)\n Log.error(formatted)\n }\n }\n }\n\n if (relevantIssues.size && throwIssue) {\n throw new ModuleBuildError([...relevantIssues].join('\\n\\n'))\n }\n}\n\nexport function renderStyledStringToErrorAnsi(string: StyledString): string {\n function decodeMagicIdentifiers(str: string): string {\n return str.replaceAll(MAGIC_IDENTIFIER_REGEX, (ident) => {\n try {\n return magenta(`{${decodeMagicIdentifier(ident)}}`)\n } catch (e) {\n return magenta(`{${ident} (decoding failed: ${e})}`)\n }\n })\n }\n\n switch (string.type) {\n case 'text':\n return decodeMagicIdentifiers(string.value)\n case 'strong':\n return bold(red(decodeMagicIdentifiers(string.value)))\n case 'code':\n return green(decodeMagicIdentifiers(string.value))\n case 'line':\n return string.value.map(renderStyledStringToErrorAnsi).join('')\n case 'stack':\n return string.value.map(renderStyledStringToErrorAnsi).join('\\n')\n default:\n throw new Error('Unknown StyledString type', string)\n }\n}\n\nconst MILLISECONDS_IN_NANOSECOND = BigInt(1_000_000)\n\nexport function msToNs(ms: number): bigint {\n return BigInt(Math.floor(ms)) * MILLISECONDS_IN_NANOSECOND\n}\n\nexport type ChangeSubscriptions = Map<\n EntryKey,\n Promise<AsyncIterableIterator<TurbopackResult>>\n>\n\nexport type HandleWrittenEndpoint = (\n key: EntryKey,\n result: TurbopackResult<WrittenEndpoint>\n) => void\n\nexport type StartChangeSubscription = (\n key: EntryKey,\n includeIssues: boolean,\n endpoint: Endpoint,\n makePayload: (\n change: TurbopackResult\n ) => Promise<HMR_ACTION_TYPES> | HMR_ACTION_TYPES | void,\n onError?: (e: Error) => Promise<HMR_ACTION_TYPES> | HMR_ACTION_TYPES | void\n) => Promise<void>\n\nexport type StopChangeSubscription = (key: EntryKey) => Promise<void>\n\nexport type SendHmr = (id: string, payload: HMR_ACTION_TYPES) => void\n\nexport type StartBuilding = (\n id: string,\n requestUrl: string | undefined,\n forceRebuild: boolean\n) => () => void\n\nexport type ReadyIds = Set<string>\n\nexport type ClientState = {\n clientIssues: EntryIssuesMap\n hmrPayloads: Map<string, HMR_ACTION_TYPES>\n turbopackUpdates: TurbopackUpdate[]\n subscriptions: Map<string, AsyncIterator<any>>\n}\n\nexport type ClientStateMap = WeakMap<ws, ClientState>\n\n// hooks only used by the dev server.\ntype HandleRouteTypeHooks = {\n handleWrittenEndpoint: HandleWrittenEndpoint\n subscribeToChanges: StartChangeSubscription\n}\n\nexport async function handleRouteType({\n dev,\n page,\n pathname,\n route,\n currentEntryIssues,\n entrypoints,\n manifestLoader,\n readyIds,\n devRewrites,\n productionRewrites,\n hooks,\n logErrors,\n}: {\n dev: boolean\n page: string\n pathname: string\n route: PageRoute | AppRoute\n\n currentEntryIssues: EntryIssuesMap\n entrypoints: Entrypoints\n manifestLoader: TurbopackManifestLoader\n devRewrites: SetupOpts['fsChecker']['rewrites'] | undefined\n productionRewrites: CustomRoutes['rewrites'] | undefined\n logErrors: boolean\n\n readyIds?: ReadyIds // dev\n\n hooks?: HandleRouteTypeHooks // dev\n}) {\n const shouldCreateWebpackStats = process.env.TURBOPACK_STATS != null\n\n switch (route.type) {\n case 'page': {\n const clientKey = getEntryKey('pages', 'client', page)\n const serverKey = getEntryKey('pages', 'server', page)\n\n try {\n if (entrypoints.global.app) {\n const key = getEntryKey('pages', 'server', '_app')\n\n const writtenEndpoint = await entrypoints.global.app.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(\n currentEntryIssues,\n key,\n writtenEndpoint,\n false,\n logErrors\n )\n }\n await manifestLoader.loadBuildManifest('_app')\n await manifestLoader.loadPagesManifest('_app')\n\n if (entrypoints.global.document) {\n const key = getEntryKey('pages', 'server', '_document')\n\n const writtenEndpoint =\n await entrypoints.global.document.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(\n currentEntryIssues,\n key,\n writtenEndpoint,\n false,\n logErrors\n )\n }\n await manifestLoader.loadPagesManifest('_document')\n\n const writtenEndpoint = await route.htmlEndpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(serverKey, writtenEndpoint)\n\n const type = writtenEndpoint?.type\n\n await manifestLoader.loadBuildManifest(page)\n await manifestLoader.loadPagesManifest(page)\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'pages')\n } else {\n manifestLoader.deleteMiddlewareManifest(serverKey)\n }\n await manifestLoader.loadFontManifest('/_app', 'pages')\n await manifestLoader.loadFontManifest(page, 'pages')\n await manifestLoader.loadLoadableManifest(page, 'pages')\n\n if (shouldCreateWebpackStats) {\n await manifestLoader.loadWebpackStats(page, 'pages')\n }\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n\n processIssues(\n currentEntryIssues,\n serverKey,\n writtenEndpoint,\n false,\n logErrors\n )\n } finally {\n if (dev) {\n // TODO subscriptions should only be caused by the WebSocket connections\n // otherwise we don't known when to unsubscribe and this leaking\n hooks?.subscribeToChanges(\n serverKey,\n false,\n route.dataEndpoint,\n () => {\n // Report the next compilation again\n readyIds?.delete(pathname)\n return {\n event: HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ONLY_CHANGES,\n pages: [page],\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in ${page} data subscription: ${e}`,\n }\n }\n )\n hooks?.subscribeToChanges(\n clientKey,\n false,\n route.htmlEndpoint,\n () => {\n return {\n event: HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES,\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in ${page} html subscription: ${e}`,\n }\n }\n )\n if (entrypoints.global.document) {\n hooks?.subscribeToChanges(\n getEntryKey('pages', 'server', '_document'),\n false,\n entrypoints.global.document,\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: '_document has changed (page route)',\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in _document subscription (page route): ${e}`,\n }\n }\n )\n }\n }\n }\n\n break\n }\n case 'page-api': {\n const key = getEntryKey('pages', 'server', page)\n\n const writtenEndpoint = await route.endpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n\n const type = writtenEndpoint.type\n\n await manifestLoader.loadPagesManifest(page)\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'pages')\n } else {\n manifestLoader.deleteMiddlewareManifest(key)\n }\n await manifestLoader.loadLoadableManifest(page, 'pages')\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n\n processIssues(currentEntryIssues, key, writtenEndpoint, true, logErrors)\n\n break\n }\n case 'app-page': {\n const key = getEntryKey('app', 'server', page)\n\n const writtenEndpoint = await route.htmlEndpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n\n if (dev) {\n // TODO subscriptions should only be caused by the WebSocket connections\n // otherwise we don't known when to unsubscribe and this leaking\n hooks?.subscribeToChanges(\n key,\n true,\n route.rscEndpoint,\n (change) => {\n if (change.issues.some((issue) => issue.severity === 'error')) {\n // Ignore any updates that has errors\n // There will be another update without errors eventually\n return\n }\n // Report the next compilation again\n readyIds?.delete(pathname)\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES,\n }\n },\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES,\n }\n }\n )\n }\n\n const type = writtenEndpoint.type\n\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'app')\n } else {\n manifestLoader.deleteMiddlewareManifest(key)\n }\n\n await manifestLoader.loadAppBuildManifest(page)\n await manifestLoader.loadBuildManifest(page, 'app')\n await manifestLoader.loadAppPathsManifest(page)\n await manifestLoader.loadActionManifest(page)\n await manifestLoader.loadLoadableManifest(page, 'app')\n await manifestLoader.loadFontManifest(page, 'app')\n\n if (shouldCreateWebpackStats) {\n await manifestLoader.loadWebpackStats(page, 'app')\n }\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n\n processIssues(currentEntryIssues, key, writtenEndpoint, dev, logErrors)\n\n break\n }\n case 'app-route': {\n const key = getEntryKey('app', 'server', page)\n\n const writtenEndpoint = await route.endpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n\n const type = writtenEndpoint.type\n\n await manifestLoader.loadAppPathsManifest(page)\n\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'app')\n } else {\n manifestLoader.deleteMiddlewareManifest(key)\n }\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n processIssues(currentEntryIssues, key, writtenEndpoint, true, logErrors)\n\n break\n }\n default: {\n throw new Error(`unknown route type ${(route as any).type} for ${page}`)\n }\n }\n}\n\n/**\n * Maintains a mapping between entrypoins and the corresponding client asset paths.\n */\nexport class AssetMapper {\n private entryMap: Map<EntryKey, Set<string>> = new Map()\n private assetMap: Map<string, Set<EntryKey>> = new Map()\n\n /**\n * Overrides asset paths for a key and updates the mapping from path to key.\n *\n * @param key\n * @param assetPaths asset paths relative to the .next directory\n */\n setPathsForKey(key: EntryKey, assetPaths: string[]): void {\n this.delete(key)\n\n const newAssetPaths = new Set(assetPaths)\n this.entryMap.set(key, newAssetPaths)\n\n for (const assetPath of newAssetPaths) {\n let assetPathKeys = this.assetMap.get(assetPath)\n if (!assetPathKeys) {\n assetPathKeys = new Set()\n this.assetMap.set(assetPath, assetPathKeys)\n }\n\n assetPathKeys!.add(key)\n }\n }\n\n /**\n * Deletes the key and any asset only referenced by this key.\n *\n * @param key\n */\n delete(key: EntryKey) {\n for (const assetPath of this.getAssetPathsByKey(key)) {\n const assetPathKeys = this.assetMap.get(assetPath)\n\n assetPathKeys?.delete(key)\n\n if (!assetPathKeys?.size) {\n this.assetMap.delete(assetPath)\n }\n }\n\n this.entryMap.delete(key)\n }\n\n getAssetPathsByKey(key: EntryKey): string[] {\n return Array.from(this.entryMap.get(key) ?? [])\n }\n\n getKeysByAsset(path: string): EntryKey[] {\n return Array.from(this.assetMap.get(path) ?? [])\n }\n\n keys(): IterableIterator<EntryKey> {\n return this.entryMap.keys()\n }\n}\n\nexport function hasEntrypointForKey(\n entrypoints: Entrypoints,\n key: EntryKey,\n assetMapper: AssetMapper | undefined\n): boolean {\n const { type, page } = splitEntryKey(key)\n\n switch (type) {\n case 'app':\n return entrypoints.app.has(page)\n case 'pages':\n switch (page) {\n case '_app':\n return entrypoints.global.app != null\n case '_document':\n return entrypoints.global.document != null\n case '_error':\n return entrypoints.global.error != null\n default:\n return entrypoints.page.has(page)\n }\n case 'root':\n switch (page) {\n case 'middleware':\n return entrypoints.global.middleware != null\n case 'instrumentation':\n return entrypoints.global.instrumentation != null\n default:\n return false\n }\n case 'assets':\n if (!assetMapper) {\n return false\n }\n\n return assetMapper\n .getKeysByAsset(page)\n .some((pageKey) =>\n hasEntrypointForKey(entrypoints, pageKey, assetMapper)\n )\n default: {\n // validation that we covered all cases, this should never run.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _: never = type\n return false\n }\n }\n}\n\n// hooks only used by the dev server.\ntype HandleEntrypointsHooks = {\n handleWrittenEndpoint: HandleWrittenEndpoint\n propagateServerField: (\n field: PropagateToWorkersField,\n args: any\n ) => Promise<void>\n sendHmr: SendHmr\n startBuilding: StartBuilding\n subscribeToChanges: StartChangeSubscription\n unsubscribeFromChanges: StopChangeSubscription\n unsubscribeFromHmrEvents: (client: ws, id: string) => void\n}\n\ntype HandleEntrypointsDevOpts = {\n assetMapper: AssetMapper\n changeSubscriptions: ChangeSubscriptions\n clients: Set<ws>\n clientStates: ClientStateMap\n serverFields: ServerFields\n\n hooks: HandleEntrypointsHooks\n}\n\nexport async function handleEntrypoints({\n entrypoints,\n\n currentEntrypoints,\n\n currentEntryIssues,\n manifestLoader,\n devRewrites,\n productionRewrites,\n logErrors,\n dev,\n}: {\n entrypoints: TurbopackResult<RawEntrypoints>\n\n currentEntrypoints: Entrypoints\n\n currentEntryIssues: EntryIssuesMap\n manifestLoader: TurbopackManifestLoader\n devRewrites: SetupOpts['fsChecker']['rewrites'] | undefined\n productionRewrites: CustomRoutes['rewrites'] | undefined\n logErrors: boolean\n\n dev?: HandleEntrypointsDevOpts\n}) {\n currentEntrypoints.global.app = entrypoints.pagesAppEndpoint\n currentEntrypoints.global.document = entrypoints.pagesDocumentEndpoint\n currentEntrypoints.global.error = entrypoints.pagesErrorEndpoint\n\n currentEntrypoints.global.instrumentation = entrypoints.instrumentation\n\n currentEntrypoints.page.clear()\n currentEntrypoints.app.clear()\n\n for (const [pathname, route] of entrypoints.routes) {\n switch (route.type) {\n case 'page':\n case 'page-api':\n currentEntrypoints.page.set(pathname, route)\n break\n case 'app-page': {\n route.pages.forEach((page) => {\n currentEntrypoints.app.set(page.originalName, {\n type: 'app-page',\n ...page,\n })\n })\n break\n }\n case 'app-route': {\n currentEntrypoints.app.set(route.originalName, route)\n break\n }\n default:\n Log.info(`skipping ${pathname} (${route.type})`)\n break\n }\n }\n\n if (dev) {\n await handleEntrypointsDevCleanup({\n currentEntryIssues,\n currentEntrypoints,\n\n ...dev,\n })\n }\n\n const { middleware, instrumentation } = entrypoints\n\n // We check for explicit true/false, since it's initialized to\n // undefined during the first loop (middlewareChanges event is\n // unnecessary during the first serve)\n if (currentEntrypoints.global.middleware && !middleware) {\n const key = getEntryKey('root', 'server', 'middleware')\n // Went from middleware to no middleware\n await dev?.hooks.unsubscribeFromChanges(key)\n currentEntryIssues.delete(key)\n dev?.hooks.sendHmr('middleware', {\n event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES,\n })\n } else if (!currentEntrypoints.global.middleware && middleware) {\n // Went from no middleware to middleware\n dev?.hooks.sendHmr('middleware', {\n event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES,\n })\n }\n\n currentEntrypoints.global.middleware = middleware\n\n if (instrumentation) {\n const processInstrumentation = async (\n name: string,\n prop: 'nodeJs' | 'edge'\n ) => {\n const key = getEntryKey('root', 'server', name)\n\n const writtenEndpoint = await instrumentation[prop].writeToDisk()\n dev?.hooks.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await processInstrumentation('instrumentation.nodeJs', 'nodeJs')\n await processInstrumentation('instrumentation.edge', 'edge')\n await manifestLoader.loadMiddlewareManifest(\n 'instrumentation',\n 'instrumentation'\n )\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints: currentEntrypoints,\n })\n\n if (dev) {\n dev.serverFields.actualInstrumentationHookFile = '/instrumentation'\n await dev.hooks.propagateServerField(\n 'actualInstrumentationHookFile',\n dev.serverFields.actualInstrumentationHookFile\n )\n }\n } else {\n if (dev) {\n dev.serverFields.actualInstrumentationHookFile = undefined\n await dev.hooks.propagateServerField(\n 'actualInstrumentationHookFile',\n dev.serverFields.actualInstrumentationHookFile\n )\n }\n }\n\n if (middleware) {\n const key = getEntryKey('root', 'server', 'middleware')\n\n const endpoint = middleware.endpoint\n\n async function processMiddleware() {\n const writtenEndpoint = await endpoint.writeToDisk()\n dev?.hooks.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n await manifestLoader.loadMiddlewareManifest('middleware', 'middleware')\n if (dev) {\n dev.serverFields.middleware = {\n match: null as any,\n page: '/',\n matchers:\n manifestLoader.getMiddlewareManifest(key)?.middleware['/'].matchers,\n }\n }\n }\n await processMiddleware()\n\n if (dev) {\n dev?.hooks.subscribeToChanges(\n key,\n false,\n endpoint,\n async () => {\n const finishBuilding = dev.hooks.startBuilding(\n 'middleware',\n undefined,\n true\n )\n await processMiddleware()\n await dev.hooks.propagateServerField(\n 'actualMiddlewareFile',\n dev.serverFields.actualMiddlewareFile\n )\n await dev.hooks.propagateServerField(\n 'middleware',\n dev.serverFields.middleware\n )\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints: currentEntrypoints,\n })\n\n finishBuilding?.()\n return { event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES }\n },\n () => {\n return {\n event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES,\n }\n }\n )\n }\n } else {\n manifestLoader.deleteMiddlewareManifest(\n getEntryKey('root', 'server', 'middleware')\n )\n if (dev) {\n dev.serverFields.actualMiddlewareFile = undefined\n dev.serverFields.middleware = undefined\n }\n }\n\n if (dev) {\n await dev.hooks.propagateServerField(\n 'actualMiddlewareFile',\n dev.serverFields.actualMiddlewareFile\n )\n await dev.hooks.propagateServerField(\n 'middleware',\n dev.serverFields.middleware\n )\n }\n}\n\nasync function handleEntrypointsDevCleanup({\n currentEntryIssues,\n currentEntrypoints,\n\n assetMapper,\n changeSubscriptions,\n clients,\n clientStates,\n\n hooks,\n}: {\n currentEntrypoints: Entrypoints\n currentEntryIssues: EntryIssuesMap\n} & HandleEntrypointsDevOpts) {\n // this needs to be first as `hasEntrypointForKey` uses the `assetMapper`\n for (const key of assetMapper.keys()) {\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n assetMapper.delete(key)\n }\n }\n\n for (const key of changeSubscriptions.keys()) {\n // middleware is handled separately\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n await hooks.unsubscribeFromChanges(key)\n }\n }\n\n for (const [key] of currentEntryIssues) {\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n currentEntryIssues.delete(key)\n }\n }\n\n for (const client of clients) {\n const state = clientStates.get(client)\n if (!state) {\n continue\n }\n\n for (const key of state.clientIssues.keys()) {\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n state.clientIssues.delete(key)\n }\n }\n\n for (const id of state.subscriptions.keys()) {\n if (\n !hasEntrypointForKey(\n currentEntrypoints,\n getEntryKey('assets', 'client', id),\n assetMapper\n )\n ) {\n hooks.unsubscribeFromHmrEvents(client, id)\n }\n }\n }\n}\n\nexport async function handlePagesErrorRoute({\n dev,\n currentEntryIssues,\n entrypoints,\n manifestLoader,\n devRewrites,\n productionRewrites,\n logErrors,\n\n hooks,\n}: {\n dev: boolean\n currentEntryIssues: EntryIssuesMap\n entrypoints: Entrypoints\n manifestLoader: TurbopackManifestLoader\n devRewrites: SetupOpts['fsChecker']['rewrites'] | undefined\n productionRewrites: CustomRoutes['rewrites'] | undefined\n logErrors: boolean\n\n hooks?: HandleRouteTypeHooks // dev\n}) {\n if (entrypoints.global.app) {\n const key = getEntryKey('pages', 'server', '_app')\n\n const writtenEndpoint = await entrypoints.global.app.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n if (dev) {\n hooks?.subscribeToChanges(\n key,\n false,\n entrypoints.global.app,\n () => {\n // There's a special case for this in `../client/page-bootstrap.ts`.\n // https://github.com/vercel/next.js/blob/08d7a7e5189a835f5dcb82af026174e587575c0e/packages/next/src/client/page-bootstrap.ts#L69-L71\n return { event: HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES }\n },\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: '_app has changed (error route)',\n }\n }\n )\n }\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await manifestLoader.loadBuildManifest('_app')\n await manifestLoader.loadPagesManifest('_app')\n await manifestLoader.loadFontManifest('_app')\n\n if (entrypoints.global.document) {\n const key = getEntryKey('pages', 'server', '_document')\n\n const writtenEndpoint = await entrypoints.global.document.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n if (dev) {\n hooks?.subscribeToChanges(\n key,\n false,\n entrypoints.global.document,\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: '_document has changed (error route)',\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in _document subscription (error route): ${e}`,\n }\n }\n )\n }\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await manifestLoader.loadPagesManifest('_document')\n\n if (entrypoints.global.error) {\n const key = getEntryKey('pages', 'server', '_error')\n\n const writtenEndpoint = await entrypoints.global.error.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n if (dev) {\n hooks?.subscribeToChanges(\n key,\n false,\n entrypoints.global.error,\n () => {\n // There's a special case for this in `../client/page-bootstrap.ts`.\n // https://github.com/vercel/next.js/blob/08d7a7e5189a835f5dcb82af026174e587575c0e/packages/next/src/client/page-bootstrap.ts#L69-L71\n return { event: HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in _error subscription: ${e}`,\n }\n }\n )\n }\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await manifestLoader.loadBuildManifest('_error')\n await manifestLoader.loadPagesManifest('_error')\n await manifestLoader.loadFontManifest('_error')\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n}\n\nexport function removeRouteSuffix(route: string): string {\n return route.replace(/\\/route$/, '')\n}\n\nexport function addRouteSuffix(route: string): string {\n return route + '/route'\n}\n\nexport function addMetadataIdToRoute(route: string): string {\n return route + '/[__metadata_id__]'\n}\n\n// Since turbopack will create app pages/route entries based on the structure,\n// which means the entry keys are based on file names.\n// But for special metadata conventions we'll change the page/pathname to a different path.\n// So we need this helper to map the new path back to original turbopack entry key.\nexport function normalizedPageToTurbopackStructureRoute(\n route: string,\n ext: string | false\n): string {\n let entrypointKey = route\n if (isMetadataRoute(entrypointKey)) {\n entrypointKey = entrypointKey.endsWith('/route')\n ? entrypointKey.slice(0, -'/route'.length)\n : entrypointKey\n\n if (ext) {\n if (entrypointKey.endsWith('/[__metadata_id__]')) {\n entrypointKey = entrypointKey.slice(0, -'/[__metadata_id__]'.length)\n }\n if (entrypointKey.endsWith('/sitemap.xml') && ext !== '.xml') {\n // For dynamic sitemap route, remove the extension\n entrypointKey = entrypointKey.slice(0, -'.xml'.length)\n }\n }\n entrypointKey = entrypointKey + '/route'\n }\n return entrypointKey\n}\n\nexport function isPersistentCachingEnabled(\n config: NextConfigComplete\n): boolean {\n const unstableValue = config.experimental.turbo?.unstablePersistentCaching\n if (typeof unstableValue === 'number' && unstableValue > 1) {\n throw new Error(\n 'Persistent caching in this version of Turbopack is not as stable as expected. Upgrade to a newer version of Turbopack to use this feature with the expected stability.'\n )\n }\n return !!unstableValue\n}\n"],"names":["AssetMapper","ModuleBuildError","TurbopackInternalError","addMetadataIdToRoute","addRouteSuffix","formatIssue","getTurbopackJsConfig","handleEntrypoints","handlePagesErrorRoute","handleRouteType","hasEntrypointForKey","isPersistentCachingEnabled","isRelevantWarning","isWellKnownError","msToNs","normalizedPageToTurbopackStructureRoute","printNonFatalIssue","processIssues","processTopLevelIssues","removeRouteSuffix","renderStyledStringToErrorAnsi","dir","nextConfig","jsConfig","loadJsConfig","compilerOptions","Error","name","constructor","cause","message","stack","issue","title","formattedTitle","includes","onceErrorSet","Set","shouldEmitOnceWarning","severity","stage","value","has","add","Log","warn","isNodeModulesIssue","filePath","match","description","source","documentationLink","replace","formattedFilePath","replaceAll","range","start","line","column","content","isInternal","end","codeFrameColumns","require","forceColor","trim","getIssueKey","JSON","stringify","currentTopLevelIssues","result","clear","issues","issueKey","set","currentEntryIssues","key","throwIssue","logErrors","newIssues","Map","relevantIssues","formatted","error","size","join","string","decodeMagicIdentifiers","str","MAGIC_IDENTIFIER_REGEX","ident","magenta","decodeMagicIdentifier","e","type","bold","red","green","map","MILLISECONDS_IN_NANOSECOND","BigInt","ms","Math","floor","dev","page","pathname","route","entrypoints","manifestLoader","readyIds","devRewrites","productionRewrites","hooks","shouldCreateWebpackStats","process","env","TURBOPACK_STATS","clientKey","getEntryKey","serverKey","global","app","writtenEndpoint","writeToDisk","handleWrittenEndpoint","loadBuildManifest","loadPagesManifest","document","htmlEndpoint","loadMiddlewareManifest","deleteMiddlewareManifest","loadFontManifest","loadLoadableManifest","loadWebpackStats","writeManifests","subscribeToChanges","dataEndpoint","delete","event","HMR_ACTIONS_SENT_TO_BROWSER","SERVER_ONLY_CHANGES","pages","action","RELOAD_PAGE","data","CLIENT_CHANGES","endpoint","rscEndpoint","change","some","SERVER_COMPONENT_CHANGES","loadAppBuildManifest","loadAppPathsManifest","loadActionManifest","setPathsForKey","assetPaths","newAssetPaths","entryMap","assetPath","assetPathKeys","assetMap","get","getAssetPathsByKey","Array","from","getKeysByAsset","path","keys","assetMapper","splitEntryKey","middleware","instrumentation","pageKey","_","currentEntrypoints","pagesAppEndpoint","pagesDocumentEndpoint","pagesErrorEndpoint","routes","forEach","originalName","info","handleEntrypointsDevCleanup","unsubscribeFromChanges","sendHmr","MIDDLEWARE_CHANGES","processInstrumentation","prop","serverFields","actualInstrumentationHookFile","propagateServerField","undefined","processMiddleware","matchers","getMiddlewareManifest","finishBuilding","startBuilding","actualMiddlewareFile","changeSubscriptions","clients","clientStates","client","state","clientIssues","id","subscriptions","unsubscribeFromHmrEvents","ext","entrypointKey","isMetadataRoute","endsWith","slice","length","config","unstableValue","experimental","turbo","unstablePersistentCaching"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0oBaA,WAAW;eAAXA;;IA1lBAC,gBAAgB;eAAhBA;;IAMAC,sBAAsB;eAAtBA;;IA8lCGC,oBAAoB;eAApBA;;IAJAC,cAAc;eAAdA;;IArgCAC,WAAW;eAAXA;;IArGMC,oBAAoB;eAApBA;;IAwuBAC,iBAAiB;eAAjBA;;IA4QAC,qBAAqB;eAArBA;;IAhrBAC,eAAe;eAAfA;;IA2VNC,mBAAmB;eAAnBA;;IA+eAC,0BAA0B;eAA1BA;;IA7iCAC,iBAAiB;eAAjBA;;IApEAC,gBAAgB;eAAhBA;;IAoPAC,MAAM;eAANA;;IAq2BAC,uCAAuC;eAAvCA;;IA5iCAC,kBAAkB;eAAlBA;;IAiIAC,aAAa;eAAbA;;IAZAC,qBAAqB;eAArBA;;IAu6BAC,iBAAiB;eAAjBA;;IAl3BAC,6BAA6B;eAA7BA;;;qEAzRS;iCAiBlB;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gB;IAClC;IACA,OAAOA;AACT;AAEO,SAAStM,2BACd2M,MAA0B;QAEJA;IAAtB,MAAMC,iBAAgBD,6BAAAA,OAAOE,YAAY,CAACC,KAAK,qBAAzBH,2BAA2BI,yBAAyB;IAC1E,IAAI,OAAOH,kBAAkB,YAAYA,gBAAgB,GAAG;QAC1D,MAAM,IAAI7L,MACR;IAEJ;IACA,OAAO,CAAC,CAAC6L;AACX"}
1
+ {"version":3,"sources":["../../../src/server/dev/turbopack-utils.ts"],"sourcesContent":["import type { NextConfigComplete } from '../config-shared'\nimport loadJsConfig from '../../build/load-jsconfig'\nimport type {\n ServerFields,\n SetupOpts,\n} from '../lib/router-utils/setup-dev-bundler'\nimport type {\n Issue,\n StyledString,\n TurbopackResult,\n Endpoint,\n Entrypoints as RawEntrypoints,\n Update as TurbopackUpdate,\n WrittenEndpoint,\n} from '../../build/swc/types'\nimport {\n decodeMagicIdentifier,\n MAGIC_IDENTIFIER_REGEX,\n} from '../../shared/lib/magic-identifier'\nimport { bold, green, magenta, red } from '../../lib/picocolors'\nimport {\n type HMR_ACTION_TYPES,\n HMR_ACTIONS_SENT_TO_BROWSER,\n} from './hot-reloader-types'\nimport * as Log from '../../build/output/log'\nimport type { PropagateToWorkersField } from '../lib/router-utils/types'\nimport type { TurbopackManifestLoader } from './turbopack/manifest-loader'\nimport type { AppRoute, Entrypoints, PageRoute } from './turbopack/types'\nimport {\n type EntryKey,\n getEntryKey,\n splitEntryKey,\n} from './turbopack/entry-key'\nimport type ws from 'next/dist/compiled/ws'\nimport isInternal from '../../shared/lib/is-internal'\nimport { isMetadataRoute } from '../../lib/metadata/is-metadata-route'\nimport type { CustomRoutes } from '../../lib/load-custom-routes'\n\nexport async function getTurbopackJsConfig(\n dir: string,\n nextConfig: NextConfigComplete\n) {\n const { jsConfig } = await loadJsConfig(dir, nextConfig)\n return jsConfig ?? { compilerOptions: {} }\n}\n\n// An error generated from emitted Turbopack issues. This can include build\n// errors caused by issues with user code.\nexport class ModuleBuildError extends Error {\n name = 'ModuleBuildError'\n}\n\n// An error caused by an internal issue in Turbopack. These should be written\n// to a log file and details should not be shown to the user.\nexport class TurbopackInternalError extends Error {\n name = 'TurbopackInternalError'\n\n constructor(cause: Error) {\n super(cause.message)\n this.stack = cause.stack\n }\n}\n\n/**\n * Thin stopgap workaround layer to mimic existing wellknown-errors-plugin in webpack's build\n * to emit certain type of errors into cli.\n */\nexport function isWellKnownError(issue: Issue): boolean {\n const { title } = issue\n const formattedTitle = renderStyledStringToErrorAnsi(title)\n // TODO: add more well known errors\n if (\n formattedTitle.includes('Module not found') ||\n formattedTitle.includes('Unknown module type')\n ) {\n return true\n }\n\n return false\n}\n\nconst onceErrorSet = new Set()\n/**\n * Check if given issue is a warning to be display only once.\n * This mimics behavior of get-page-static-info's warnOnce.\n * @param issue\n * @returns\n */\nfunction shouldEmitOnceWarning(issue: Issue): boolean {\n const { severity, title, stage } = issue\n if (severity === 'warning' && title.value === 'Invalid page configuration') {\n if (onceErrorSet.has(issue)) {\n return false\n }\n onceErrorSet.add(issue)\n }\n if (\n severity === 'warning' &&\n stage === 'config' &&\n renderStyledStringToErrorAnsi(issue.title).includes(\"can't be external\")\n ) {\n if (onceErrorSet.has(issue)) {\n return false\n }\n onceErrorSet.add(issue)\n }\n\n return true\n}\n\n/// Print out an issue to the console which should not block\n/// the build by throwing out or blocking error overlay.\nexport function printNonFatalIssue(issue: Issue) {\n if (isRelevantWarning(issue) && shouldEmitOnceWarning(issue)) {\n Log.warn(formatIssue(issue))\n }\n}\n\nfunction isNodeModulesIssue(issue: Issue): boolean {\n if (issue.severity === 'warning' && issue.stage === 'config') {\n // Override for the externalize issue\n // `Package foo (serverExternalPackages or default list) can't be external`\n if (\n renderStyledStringToErrorAnsi(issue.title).includes(\"can't be external\")\n ) {\n return false\n }\n }\n\n return (\n issue.severity === 'warning' &&\n issue.filePath.match(/^(?:.*[\\\\/])?node_modules(?:[\\\\/].*)?$/) !== null\n )\n}\n\nexport function isRelevantWarning(issue: Issue): boolean {\n return issue.severity === 'warning' && !isNodeModulesIssue(issue)\n}\n\nexport function formatIssue(issue: Issue) {\n const { filePath, title, description, source } = issue\n let { documentationLink } = issue\n let formattedTitle = renderStyledStringToErrorAnsi(title).replace(\n /\\n/g,\n '\\n '\n )\n\n // TODO: Use error codes to identify these\n // TODO: Generalize adapting Turbopack errors to Next.js errors\n if (formattedTitle.includes('Module not found')) {\n // For compatiblity with webpack\n // TODO: include columns in webpack errors.\n documentationLink = 'https://nextjs.org/docs/messages/module-not-found'\n }\n\n let formattedFilePath = filePath\n .replace('[project]/', './')\n .replaceAll('/./', '/')\n .replace('\\\\\\\\?\\\\', '')\n\n let message = ''\n\n if (source && source.range) {\n const { start } = source.range\n message = `${formattedFilePath}:${start.line + 1}:${\n start.column + 1\n }\\n${formattedTitle}`\n } else if (formattedFilePath) {\n message = `${formattedFilePath}\\n${formattedTitle}`\n } else {\n message = formattedTitle\n }\n message += '\\n'\n\n if (\n source?.range &&\n source.source.content &&\n // ignore Next.js/React internals, as these can often be huge bundled files.\n !isInternal(filePath)\n ) {\n const { start, end } = source.range\n const { codeFrameColumns } = require('next/dist/compiled/babel/code-frame')\n\n message +=\n codeFrameColumns(\n source.source.content,\n {\n start: {\n line: start.line + 1,\n column: start.column + 1,\n },\n end: {\n line: end.line + 1,\n column: end.column + 1,\n },\n },\n { forceColor: true }\n ).trim() + '\\n\\n'\n }\n\n if (description) {\n message += renderStyledStringToErrorAnsi(description) + '\\n\\n'\n }\n\n // TODO: make it possible to enable this for debugging, but not in tests.\n // if (detail) {\n // message += renderStyledStringToErrorAnsi(detail) + '\\n\\n'\n // }\n\n // TODO: Include a trace from the issue.\n\n if (documentationLink) {\n message += documentationLink + '\\n\\n'\n }\n\n return message\n}\n\ntype IssueKey = `${Issue['severity']}-${Issue['filePath']}-${string}-${string}`\nexport type IssuesMap = Map<IssueKey, Issue>\nexport type EntryIssuesMap = Map<EntryKey, IssuesMap>\nexport type TopLevelIssuesMap = IssuesMap\n\nfunction getIssueKey(issue: Issue): IssueKey {\n return `${issue.severity}-${issue.filePath}-${JSON.stringify(\n issue.title\n )}-${JSON.stringify(issue.description)}`\n}\n\nexport function processTopLevelIssues(\n currentTopLevelIssues: TopLevelIssuesMap,\n result: TurbopackResult\n) {\n currentTopLevelIssues.clear()\n\n for (const issue of result.issues) {\n const issueKey = getIssueKey(issue)\n currentTopLevelIssues.set(issueKey, issue)\n }\n}\n\nexport function processIssues(\n currentEntryIssues: EntryIssuesMap,\n key: EntryKey,\n result: TurbopackResult,\n throwIssue: boolean,\n logErrors: boolean\n) {\n const newIssues = new Map<IssueKey, Issue>()\n currentEntryIssues.set(key, newIssues)\n\n const relevantIssues = new Set()\n\n for (const issue of result.issues) {\n if (\n issue.severity !== 'error' &&\n issue.severity !== 'fatal' &&\n issue.severity !== 'warning'\n )\n continue\n\n const issueKey = getIssueKey(issue)\n newIssues.set(issueKey, issue)\n\n if (issue.severity !== 'warning') {\n if (throwIssue) {\n const formatted = formatIssue(issue)\n relevantIssues.add(formatted)\n }\n // if we throw the issue it will most likely get handed and logged elsewhere\n else if (logErrors && isWellKnownError(issue)) {\n const formatted = formatIssue(issue)\n Log.error(formatted)\n }\n }\n }\n\n if (relevantIssues.size && throwIssue) {\n throw new ModuleBuildError([...relevantIssues].join('\\n\\n'))\n }\n}\n\nexport function renderStyledStringToErrorAnsi(string: StyledString): string {\n function decodeMagicIdentifiers(str: string): string {\n return str.replaceAll(MAGIC_IDENTIFIER_REGEX, (ident) => {\n try {\n return magenta(`{${decodeMagicIdentifier(ident)}}`)\n } catch (e) {\n return magenta(`{${ident} (decoding failed: ${e})}`)\n }\n })\n }\n\n switch (string.type) {\n case 'text':\n return decodeMagicIdentifiers(string.value)\n case 'strong':\n return bold(red(decodeMagicIdentifiers(string.value)))\n case 'code':\n return green(decodeMagicIdentifiers(string.value))\n case 'line':\n return string.value.map(renderStyledStringToErrorAnsi).join('')\n case 'stack':\n return string.value.map(renderStyledStringToErrorAnsi).join('\\n')\n default:\n throw new Error('Unknown StyledString type', string)\n }\n}\n\nconst MILLISECONDS_IN_NANOSECOND = BigInt(1_000_000)\n\nexport function msToNs(ms: number): bigint {\n return BigInt(Math.floor(ms)) * MILLISECONDS_IN_NANOSECOND\n}\n\nexport type ChangeSubscriptions = Map<\n EntryKey,\n Promise<AsyncIterableIterator<TurbopackResult>>\n>\n\nexport type HandleWrittenEndpoint = (\n key: EntryKey,\n result: TurbopackResult<WrittenEndpoint>\n) => void\n\nexport type StartChangeSubscription = (\n key: EntryKey,\n includeIssues: boolean,\n endpoint: Endpoint,\n makePayload: (\n change: TurbopackResult\n ) => Promise<HMR_ACTION_TYPES> | HMR_ACTION_TYPES | void,\n onError?: (e: Error) => Promise<HMR_ACTION_TYPES> | HMR_ACTION_TYPES | void\n) => Promise<void>\n\nexport type StopChangeSubscription = (key: EntryKey) => Promise<void>\n\nexport type SendHmr = (id: string, payload: HMR_ACTION_TYPES) => void\n\nexport type StartBuilding = (\n id: string,\n requestUrl: string | undefined,\n forceRebuild: boolean\n) => () => void\n\nexport type ReadyIds = Set<string>\n\nexport type ClientState = {\n clientIssues: EntryIssuesMap\n hmrPayloads: Map<string, HMR_ACTION_TYPES>\n turbopackUpdates: TurbopackUpdate[]\n subscriptions: Map<string, AsyncIterator<any>>\n}\n\nexport type ClientStateMap = WeakMap<ws, ClientState>\n\n// hooks only used by the dev server.\ntype HandleRouteTypeHooks = {\n handleWrittenEndpoint: HandleWrittenEndpoint\n subscribeToChanges: StartChangeSubscription\n}\n\nexport async function handleRouteType({\n dev,\n page,\n pathname,\n route,\n currentEntryIssues,\n entrypoints,\n manifestLoader,\n readyIds,\n devRewrites,\n productionRewrites,\n hooks,\n logErrors,\n}: {\n dev: boolean\n page: string\n pathname: string\n route: PageRoute | AppRoute\n\n currentEntryIssues: EntryIssuesMap\n entrypoints: Entrypoints\n manifestLoader: TurbopackManifestLoader\n devRewrites: SetupOpts['fsChecker']['rewrites'] | undefined\n productionRewrites: CustomRoutes['rewrites'] | undefined\n logErrors: boolean\n\n readyIds?: ReadyIds // dev\n\n hooks?: HandleRouteTypeHooks // dev\n}) {\n const shouldCreateWebpackStats = process.env.TURBOPACK_STATS != null\n\n switch (route.type) {\n case 'page': {\n const clientKey = getEntryKey('pages', 'client', page)\n const serverKey = getEntryKey('pages', 'server', page)\n\n try {\n if (entrypoints.global.app) {\n const key = getEntryKey('pages', 'server', '_app')\n\n const writtenEndpoint = await entrypoints.global.app.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(\n currentEntryIssues,\n key,\n writtenEndpoint,\n false,\n logErrors\n )\n }\n await manifestLoader.loadBuildManifest('_app')\n await manifestLoader.loadPagesManifest('_app')\n\n if (entrypoints.global.document) {\n const key = getEntryKey('pages', 'server', '_document')\n\n const writtenEndpoint =\n await entrypoints.global.document.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(\n currentEntryIssues,\n key,\n writtenEndpoint,\n false,\n logErrors\n )\n }\n await manifestLoader.loadPagesManifest('_document')\n\n const writtenEndpoint = await route.htmlEndpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(serverKey, writtenEndpoint)\n\n const type = writtenEndpoint?.type\n\n await manifestLoader.loadBuildManifest(page)\n await manifestLoader.loadPagesManifest(page)\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'pages')\n } else {\n manifestLoader.deleteMiddlewareManifest(serverKey)\n }\n await manifestLoader.loadFontManifest('/_app', 'pages')\n await manifestLoader.loadFontManifest(page, 'pages')\n await manifestLoader.loadLoadableManifest(page, 'pages')\n\n if (shouldCreateWebpackStats) {\n await manifestLoader.loadWebpackStats(page, 'pages')\n }\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n\n processIssues(\n currentEntryIssues,\n serverKey,\n writtenEndpoint,\n false,\n logErrors\n )\n } finally {\n if (dev) {\n // TODO subscriptions should only be caused by the WebSocket connections\n // otherwise we don't known when to unsubscribe and this leaking\n hooks?.subscribeToChanges(\n serverKey,\n false,\n route.dataEndpoint,\n () => {\n // Report the next compilation again\n readyIds?.delete(pathname)\n return {\n event: HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ONLY_CHANGES,\n pages: [page],\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in ${page} data subscription: ${e}`,\n }\n }\n )\n hooks?.subscribeToChanges(\n clientKey,\n false,\n route.htmlEndpoint,\n () => {\n return {\n event: HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES,\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in ${page} html subscription: ${e}`,\n }\n }\n )\n if (entrypoints.global.document) {\n hooks?.subscribeToChanges(\n getEntryKey('pages', 'server', '_document'),\n false,\n entrypoints.global.document,\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: '_document has changed (page route)',\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in _document subscription (page route): ${e}`,\n }\n }\n )\n }\n }\n }\n\n break\n }\n case 'page-api': {\n const key = getEntryKey('pages', 'server', page)\n\n const writtenEndpoint = await route.endpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n\n const type = writtenEndpoint.type\n\n await manifestLoader.loadPagesManifest(page)\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'pages')\n } else {\n manifestLoader.deleteMiddlewareManifest(key)\n }\n await manifestLoader.loadLoadableManifest(page, 'pages')\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n\n processIssues(currentEntryIssues, key, writtenEndpoint, true, logErrors)\n\n break\n }\n case 'app-page': {\n const key = getEntryKey('app', 'server', page)\n\n const writtenEndpoint = await route.htmlEndpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n\n if (dev) {\n // TODO subscriptions should only be caused by the WebSocket connections\n // otherwise we don't known when to unsubscribe and this leaking\n hooks?.subscribeToChanges(\n key,\n true,\n route.rscEndpoint,\n (change) => {\n if (change.issues.some((issue) => issue.severity === 'error')) {\n // Ignore any updates that has errors\n // There will be another update without errors eventually\n return\n }\n // Report the next compilation again\n readyIds?.delete(pathname)\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES,\n }\n },\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES,\n }\n }\n )\n }\n\n const type = writtenEndpoint.type\n\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'app')\n } else {\n manifestLoader.deleteMiddlewareManifest(key)\n }\n\n await manifestLoader.loadAppBuildManifest(page)\n await manifestLoader.loadBuildManifest(page, 'app')\n await manifestLoader.loadAppPathsManifest(page)\n await manifestLoader.loadActionManifest(page)\n await manifestLoader.loadLoadableManifest(page, 'app')\n await manifestLoader.loadFontManifest(page, 'app')\n\n if (shouldCreateWebpackStats) {\n await manifestLoader.loadWebpackStats(page, 'app')\n }\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n\n processIssues(currentEntryIssues, key, writtenEndpoint, dev, logErrors)\n\n break\n }\n case 'app-route': {\n const key = getEntryKey('app', 'server', page)\n\n const writtenEndpoint = await route.endpoint.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n\n const type = writtenEndpoint.type\n\n await manifestLoader.loadAppPathsManifest(page)\n\n if (type === 'edge') {\n await manifestLoader.loadMiddlewareManifest(page, 'app')\n } else {\n manifestLoader.deleteMiddlewareManifest(key)\n }\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n processIssues(currentEntryIssues, key, writtenEndpoint, true, logErrors)\n\n break\n }\n default: {\n throw new Error(`unknown route type ${(route as any).type} for ${page}`)\n }\n }\n}\n\n/**\n * Maintains a mapping between entrypoins and the corresponding client asset paths.\n */\nexport class AssetMapper {\n private entryMap: Map<EntryKey, Set<string>> = new Map()\n private assetMap: Map<string, Set<EntryKey>> = new Map()\n\n /**\n * Overrides asset paths for a key and updates the mapping from path to key.\n *\n * @param key\n * @param assetPaths asset paths relative to the .next directory\n */\n setPathsForKey(key: EntryKey, assetPaths: string[]): void {\n this.delete(key)\n\n const newAssetPaths = new Set(assetPaths)\n this.entryMap.set(key, newAssetPaths)\n\n for (const assetPath of newAssetPaths) {\n let assetPathKeys = this.assetMap.get(assetPath)\n if (!assetPathKeys) {\n assetPathKeys = new Set()\n this.assetMap.set(assetPath, assetPathKeys)\n }\n\n assetPathKeys!.add(key)\n }\n }\n\n /**\n * Deletes the key and any asset only referenced by this key.\n *\n * @param key\n */\n delete(key: EntryKey) {\n for (const assetPath of this.getAssetPathsByKey(key)) {\n const assetPathKeys = this.assetMap.get(assetPath)\n\n assetPathKeys?.delete(key)\n\n if (!assetPathKeys?.size) {\n this.assetMap.delete(assetPath)\n }\n }\n\n this.entryMap.delete(key)\n }\n\n getAssetPathsByKey(key: EntryKey): string[] {\n return Array.from(this.entryMap.get(key) ?? [])\n }\n\n getKeysByAsset(path: string): EntryKey[] {\n return Array.from(this.assetMap.get(path) ?? [])\n }\n\n keys(): IterableIterator<EntryKey> {\n return this.entryMap.keys()\n }\n}\n\nexport function hasEntrypointForKey(\n entrypoints: Entrypoints,\n key: EntryKey,\n assetMapper: AssetMapper | undefined\n): boolean {\n const { type, page } = splitEntryKey(key)\n\n switch (type) {\n case 'app':\n return entrypoints.app.has(page)\n case 'pages':\n switch (page) {\n case '_app':\n return entrypoints.global.app != null\n case '_document':\n return entrypoints.global.document != null\n case '_error':\n return entrypoints.global.error != null\n default:\n return entrypoints.page.has(page)\n }\n case 'root':\n switch (page) {\n case 'middleware':\n return entrypoints.global.middleware != null\n case 'instrumentation':\n return entrypoints.global.instrumentation != null\n default:\n return false\n }\n case 'assets':\n if (!assetMapper) {\n return false\n }\n\n return assetMapper\n .getKeysByAsset(page)\n .some((pageKey) =>\n hasEntrypointForKey(entrypoints, pageKey, assetMapper)\n )\n default: {\n // validation that we covered all cases, this should never run.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _: never = type\n return false\n }\n }\n}\n\n// hooks only used by the dev server.\ntype HandleEntrypointsHooks = {\n handleWrittenEndpoint: HandleWrittenEndpoint\n propagateServerField: (\n field: PropagateToWorkersField,\n args: any\n ) => Promise<void>\n sendHmr: SendHmr\n startBuilding: StartBuilding\n subscribeToChanges: StartChangeSubscription\n unsubscribeFromChanges: StopChangeSubscription\n unsubscribeFromHmrEvents: (client: ws, id: string) => void\n}\n\ntype HandleEntrypointsDevOpts = {\n assetMapper: AssetMapper\n changeSubscriptions: ChangeSubscriptions\n clients: Set<ws>\n clientStates: ClientStateMap\n serverFields: ServerFields\n\n hooks: HandleEntrypointsHooks\n}\n\nexport async function handleEntrypoints({\n entrypoints,\n\n currentEntrypoints,\n\n currentEntryIssues,\n manifestLoader,\n devRewrites,\n productionRewrites,\n logErrors,\n dev,\n}: {\n entrypoints: TurbopackResult<RawEntrypoints>\n\n currentEntrypoints: Entrypoints\n\n currentEntryIssues: EntryIssuesMap\n manifestLoader: TurbopackManifestLoader\n devRewrites: SetupOpts['fsChecker']['rewrites'] | undefined\n productionRewrites: CustomRoutes['rewrites'] | undefined\n logErrors: boolean\n\n dev?: HandleEntrypointsDevOpts\n}) {\n currentEntrypoints.global.app = entrypoints.pagesAppEndpoint\n currentEntrypoints.global.document = entrypoints.pagesDocumentEndpoint\n currentEntrypoints.global.error = entrypoints.pagesErrorEndpoint\n\n currentEntrypoints.global.instrumentation = entrypoints.instrumentation\n\n currentEntrypoints.page.clear()\n currentEntrypoints.app.clear()\n\n for (const [pathname, route] of entrypoints.routes) {\n switch (route.type) {\n case 'page':\n case 'page-api':\n currentEntrypoints.page.set(pathname, route)\n break\n case 'app-page': {\n route.pages.forEach((page) => {\n currentEntrypoints.app.set(page.originalName, {\n type: 'app-page',\n ...page,\n })\n })\n break\n }\n case 'app-route': {\n currentEntrypoints.app.set(route.originalName, route)\n break\n }\n default:\n Log.info(`skipping ${pathname} (${route.type})`)\n break\n }\n }\n\n if (dev) {\n await handleEntrypointsDevCleanup({\n currentEntryIssues,\n currentEntrypoints,\n\n ...dev,\n })\n }\n\n const { middleware, instrumentation } = entrypoints\n\n // We check for explicit true/false, since it's initialized to\n // undefined during the first loop (middlewareChanges event is\n // unnecessary during the first serve)\n if (currentEntrypoints.global.middleware && !middleware) {\n const key = getEntryKey('root', 'server', 'middleware')\n // Went from middleware to no middleware\n await dev?.hooks.unsubscribeFromChanges(key)\n currentEntryIssues.delete(key)\n dev?.hooks.sendHmr('middleware', {\n event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES,\n })\n } else if (!currentEntrypoints.global.middleware && middleware) {\n // Went from no middleware to middleware\n dev?.hooks.sendHmr('middleware', {\n event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES,\n })\n }\n\n currentEntrypoints.global.middleware = middleware\n\n if (instrumentation) {\n const processInstrumentation = async (\n name: string,\n prop: 'nodeJs' | 'edge'\n ) => {\n const key = getEntryKey('root', 'server', name)\n\n const writtenEndpoint = await instrumentation[prop].writeToDisk()\n dev?.hooks.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await processInstrumentation('instrumentation.nodeJs', 'nodeJs')\n await processInstrumentation('instrumentation.edge', 'edge')\n await manifestLoader.loadMiddlewareManifest(\n 'instrumentation',\n 'instrumentation'\n )\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints: currentEntrypoints,\n })\n\n if (dev) {\n dev.serverFields.actualInstrumentationHookFile = '/instrumentation'\n await dev.hooks.propagateServerField(\n 'actualInstrumentationHookFile',\n dev.serverFields.actualInstrumentationHookFile\n )\n }\n } else {\n if (dev) {\n dev.serverFields.actualInstrumentationHookFile = undefined\n await dev.hooks.propagateServerField(\n 'actualInstrumentationHookFile',\n dev.serverFields.actualInstrumentationHookFile\n )\n }\n }\n\n if (middleware) {\n const key = getEntryKey('root', 'server', 'middleware')\n\n const endpoint = middleware.endpoint\n\n async function processMiddleware() {\n const writtenEndpoint = await endpoint.writeToDisk()\n dev?.hooks.handleWrittenEndpoint(key, writtenEndpoint)\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n await manifestLoader.loadMiddlewareManifest('middleware', 'middleware')\n if (dev) {\n dev.serverFields.middleware = {\n match: null as any,\n page: '/',\n matchers:\n manifestLoader.getMiddlewareManifest(key)?.middleware['/'].matchers,\n }\n }\n }\n await processMiddleware()\n\n if (dev) {\n dev?.hooks.subscribeToChanges(\n key,\n false,\n endpoint,\n async () => {\n const finishBuilding = dev.hooks.startBuilding(\n 'middleware',\n undefined,\n true\n )\n await processMiddleware()\n await dev.hooks.propagateServerField(\n 'actualMiddlewareFile',\n dev.serverFields.actualMiddlewareFile\n )\n await dev.hooks.propagateServerField(\n 'middleware',\n dev.serverFields.middleware\n )\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints: currentEntrypoints,\n })\n\n finishBuilding?.()\n return { event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES }\n },\n () => {\n return {\n event: HMR_ACTIONS_SENT_TO_BROWSER.MIDDLEWARE_CHANGES,\n }\n }\n )\n }\n } else {\n manifestLoader.deleteMiddlewareManifest(\n getEntryKey('root', 'server', 'middleware')\n )\n if (dev) {\n dev.serverFields.actualMiddlewareFile = undefined\n dev.serverFields.middleware = undefined\n }\n }\n\n if (dev) {\n await dev.hooks.propagateServerField(\n 'actualMiddlewareFile',\n dev.serverFields.actualMiddlewareFile\n )\n await dev.hooks.propagateServerField(\n 'middleware',\n dev.serverFields.middleware\n )\n }\n}\n\nasync function handleEntrypointsDevCleanup({\n currentEntryIssues,\n currentEntrypoints,\n\n assetMapper,\n changeSubscriptions,\n clients,\n clientStates,\n\n hooks,\n}: {\n currentEntrypoints: Entrypoints\n currentEntryIssues: EntryIssuesMap\n} & HandleEntrypointsDevOpts) {\n // this needs to be first as `hasEntrypointForKey` uses the `assetMapper`\n for (const key of assetMapper.keys()) {\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n assetMapper.delete(key)\n }\n }\n\n for (const key of changeSubscriptions.keys()) {\n // middleware is handled separately\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n await hooks.unsubscribeFromChanges(key)\n }\n }\n\n for (const [key] of currentEntryIssues) {\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n currentEntryIssues.delete(key)\n }\n }\n\n for (const client of clients) {\n const state = clientStates.get(client)\n if (!state) {\n continue\n }\n\n for (const key of state.clientIssues.keys()) {\n if (!hasEntrypointForKey(currentEntrypoints, key, assetMapper)) {\n state.clientIssues.delete(key)\n }\n }\n\n for (const id of state.subscriptions.keys()) {\n if (\n !hasEntrypointForKey(\n currentEntrypoints,\n getEntryKey('assets', 'client', id),\n assetMapper\n )\n ) {\n hooks.unsubscribeFromHmrEvents(client, id)\n }\n }\n }\n}\n\nexport async function handlePagesErrorRoute({\n dev,\n currentEntryIssues,\n entrypoints,\n manifestLoader,\n devRewrites,\n productionRewrites,\n logErrors,\n\n hooks,\n}: {\n dev: boolean\n currentEntryIssues: EntryIssuesMap\n entrypoints: Entrypoints\n manifestLoader: TurbopackManifestLoader\n devRewrites: SetupOpts['fsChecker']['rewrites'] | undefined\n productionRewrites: CustomRoutes['rewrites'] | undefined\n logErrors: boolean\n\n hooks?: HandleRouteTypeHooks // dev\n}) {\n if (entrypoints.global.app) {\n const key = getEntryKey('pages', 'server', '_app')\n\n const writtenEndpoint = await entrypoints.global.app.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n if (dev) {\n hooks?.subscribeToChanges(\n key,\n false,\n entrypoints.global.app,\n () => {\n // There's a special case for this in `../client/page-bootstrap.ts`.\n // https://github.com/vercel/next.js/blob/08d7a7e5189a835f5dcb82af026174e587575c0e/packages/next/src/client/page-bootstrap.ts#L69-L71\n return { event: HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES }\n },\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: '_app has changed (error route)',\n }\n }\n )\n }\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await manifestLoader.loadBuildManifest('_app')\n await manifestLoader.loadPagesManifest('_app')\n await manifestLoader.loadFontManifest('_app')\n\n if (entrypoints.global.document) {\n const key = getEntryKey('pages', 'server', '_document')\n\n const writtenEndpoint = await entrypoints.global.document.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n if (dev) {\n hooks?.subscribeToChanges(\n key,\n false,\n entrypoints.global.document,\n () => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: '_document has changed (error route)',\n }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in _document subscription (error route): ${e}`,\n }\n }\n )\n }\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await manifestLoader.loadPagesManifest('_document')\n\n if (entrypoints.global.error) {\n const key = getEntryKey('pages', 'server', '_error')\n\n const writtenEndpoint = await entrypoints.global.error.writeToDisk()\n hooks?.handleWrittenEndpoint(key, writtenEndpoint)\n if (dev) {\n hooks?.subscribeToChanges(\n key,\n false,\n entrypoints.global.error,\n () => {\n // There's a special case for this in `../client/page-bootstrap.ts`.\n // https://github.com/vercel/next.js/blob/08d7a7e5189a835f5dcb82af026174e587575c0e/packages/next/src/client/page-bootstrap.ts#L69-L71\n return { event: HMR_ACTIONS_SENT_TO_BROWSER.CLIENT_CHANGES }\n },\n (e) => {\n return {\n action: HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE,\n data: `error in _error subscription: ${e}`,\n }\n }\n )\n }\n processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)\n }\n await manifestLoader.loadBuildManifest('_error')\n await manifestLoader.loadPagesManifest('_error')\n await manifestLoader.loadFontManifest('_error')\n\n await manifestLoader.writeManifests({\n devRewrites,\n productionRewrites,\n entrypoints,\n })\n}\n\nexport function removeRouteSuffix(route: string): string {\n return route.replace(/\\/route$/, '')\n}\n\nexport function addRouteSuffix(route: string): string {\n return route + '/route'\n}\n\nexport function addMetadataIdToRoute(route: string): string {\n return route + '/[__metadata_id__]'\n}\n\n// Since turbopack will create app pages/route entries based on the structure,\n// which means the entry keys are based on file names.\n// But for special metadata conventions we'll change the page/pathname to a different path.\n// So we need this helper to map the new path back to original turbopack entry key.\nexport function normalizedPageToTurbopackStructureRoute(\n route: string,\n ext: string | false\n): string {\n let entrypointKey = route\n if (isMetadataRoute(entrypointKey)) {\n entrypointKey = entrypointKey.endsWith('/route')\n ? entrypointKey.slice(0, -'/route'.length)\n : entrypointKey\n\n if (ext) {\n if (entrypointKey.endsWith('/[__metadata_id__]')) {\n entrypointKey = entrypointKey.slice(0, -'/[__metadata_id__]'.length)\n }\n if (entrypointKey.endsWith('/sitemap.xml') && ext !== '.xml') {\n // For dynamic sitemap route, remove the extension\n entrypointKey = entrypointKey.slice(0, -'.xml'.length)\n }\n }\n entrypointKey = entrypointKey + '/route'\n }\n return entrypointKey\n}\n\nexport function isPersistentCachingEnabled(\n config: NextConfigComplete\n): boolean {\n return config.experimental.turbo?.unstablePersistentCaching || false\n}\n"],"names":["AssetMapper","ModuleBuildError","TurbopackInternalError","addMetadataIdToRoute","addRouteSuffix","formatIssue","getTurbopackJsConfig","handleEntrypoints","handlePagesErrorRoute","handleRouteType","hasEntrypointForKey","isPersistentCachingEnabled","isRelevantWarning","isWellKnownError","msToNs","normalizedPageToTurbopackStructureRoute","printNonFatalIssue","processIssues","processTopLevelIssues","removeRouteSuffix","renderStyledStringToErrorAnsi","dir","nextConfig","jsConfig","loadJsConfig","compilerOptions","Error","name","constructor","cause","message","stack","issue","title","formattedTitle","includes","onceErrorSet","Set","shouldEmitOnceWarning","severity","stage","value","has","add","Log","warn","isNodeModulesIssue","filePath","match","description","source","documentationLink","replace","formattedFilePath","replaceAll","range","start","line","column","content","isInternal","end","codeFrameColumns","require","forceColor","trim","getIssueKey","JSON","stringify","currentTopLevelIssues","result","clear","issues","issueKey","set","currentEntryIssues","key","throwIssue","logErrors","newIssues","Map","relevantIssues","formatted","error","size","join","string","decodeMagicIdentifiers","str","MAGIC_IDENTIFIER_REGEX","ident","magenta","decodeMagicIdentifier","e","type","bold","red","green","map","MILLISECONDS_IN_NANOSECOND","BigInt","ms","Math","floor","dev","page","pathname","route","entrypoints","manifestLoader","readyIds","devRewrites","productionRewrites","hooks","shouldCreateWebpackStats","process","env","TURBOPACK_STATS","clientKey","getEntryKey","serverKey","global","app","writtenEndpoint","writeToDisk","handleWrittenEndpoint","loadBuildManifest","loadPagesManifest","document","htmlEndpoint","loadMiddlewareManifest","deleteMiddlewareManifest","loadFontManifest","loadLoadableManifest","loadWebpackStats","writeManifests","subscribeToChanges","dataEndpoint","delete","event","HMR_ACTIONS_SENT_TO_BROWSER","SERVER_ONLY_CHANGES","pages","action","RELOAD_PAGE","data","CLIENT_CHANGES","endpoint","rscEndpoint","change","some","SERVER_COMPONENT_CHANGES","loadAppBuildManifest","loadAppPathsManifest","loadActionManifest","setPathsForKey","assetPaths","newAssetPaths","entryMap","assetPath","assetPathKeys","assetMap","get","getAssetPathsByKey","Array","from","getKeysByAsset","path","keys","assetMapper","splitEntryKey","middleware","instrumentation","pageKey","_","currentEntrypoints","pagesAppEndpoint","pagesDocumentEndpoint","pagesErrorEndpoint","routes","forEach","originalName","info","handleEntrypointsDevCleanup","unsubscribeFromChanges","sendHmr","MIDDLEWARE_CHANGES","processInstrumentation","prop","serverFields","actualInstrumentationHookFile","propagateServerField","undefined","processMiddleware","matchers","getMiddlewareManifest","finishBuilding","startBuilding","actualMiddlewareFile","changeSubscriptions","clients","clientStates","client","state","clientIssues","id","subscriptions","unsubscribeFromHmrEvents","ext","entrypointKey","isMetadataRoute","endsWith","slice","length","config","experimental","turbo","unstablePersistentCaching"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0oBaA,WAAW;eAAXA;;IA1lBAC,gBAAgB;eAAhBA;;IAMAC,sBAAsB;eAAtBA;;IA8lCGC,oBAAoB;eAApBA;;IAJAC,cAAc;eAAdA;;IArgCAC,WAAW;eAAXA;;IArGMC,oBAAoB;eAApBA;;IAwuBAC,iBAAiB;eAAjBA;;IA4QAC,qBAAqB;eAArBA;;IAhrBAC,eAAe;eAAfA;;IA2VNC,mBAAmB;eAAnBA;;IA+eAC,0BAA0B;eAA1BA;;IA7iCAC,iBAAiB;eAAjBA;;IApEAC,gBAAgB;eAAhBA;;IAoPAC,MAAM;eAANA;;IAq2BAC,uCAAuC;eAAvCA;;IA5iCAC,kBAAkB;eAAlBA;;IAiIAC,aAAa;eAAbA;;IAZAC,qBAAqB;eAArBA;;IAu6BAC,iBAAiB;eAAjBA;;IAl3BAC,6BAA6B;eAA7BA;;;qEAzRS;iCAiBlB;4BACmC;kCAInC;6DACc;0BAQd;mEAEgB;iCACS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGzB,eAAed,qBACpBe,GAAW,EACXC,UAA8B;IAE9B,MAAM,EAAEC,QAAQ,EAAE,GAAG,MAAMC,IAAAA,qBAAY,EAACH,KAAKC;IAC7C,OAAOC,YAAY;QAAEE,iBAAiB,CAAC;IAAE;AAC3C;AAIO,MAAMxB,yBAAyByB;;;aACpCC,OAAO;;AACT;AAIO,MAAMzB,+BAA+BwB;IAG1CE,YAAYC,KAAY,CAAE;QACxB,KAAK,CAACA,MAAMC,OAAO;aAHrBH,OAAO;QAIL,IAAI,CAACI,KAAK,GAAGF,MAAME,KAAK;IAC1B;AACF;AAMO,SAASlB,iBA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Ae0B,cAAc,CAAC;QAClCxB;QACAC;QACAJ;IACF;AACF;AAEO,SAASzF,kBAAkBwF,KAAa;IAC7C,OAAOA,MAAMvD,OAAO,CAAC,YAAY;AACnC;AAEO,SAAShD,eAAeuG,KAAa;IAC1C,OAAOA,QAAQ;AACjB;AAEO,SAASxG,qBAAqBwG,KAAa;IAChD,OAAOA,QAAQ;AACjB;AAMO,SAAS5F,wCACd4F,KAAa,EACbqG,GAAmB;IAEnB,IAAIC,gBAAgBtG;IACpB,IAAIuG,IAAAA,gCAAe,EAACD,gBAAgB;QAClCA,gBAAgBA,cAAcE,QAAQ,CAAC,YACnCF,cAAcG,KAAK,CAAC,GAAG,CAAC,SAASC,MAAM,IACvCJ;QAEJ,IAAID,KAAK;YACP,IAAIC,cAAcE,QAAQ,CAAC,uBAAuB;gBAChDF,gBAAgBA,cAAcG,KAAK,CAAC,GAAG,CAAC,qBAAqBC,MAAM;YACrE;YACA,IAAIJ,cAAcE,QAAQ,CAAC,mBAAmBH,QAAQ,QAAQ;gBAC5D,kDAAkD;gBAClDC,gBAAgBA,cAAcG,KAAK,CAAC,GAAG,CAAC,OAAOC,MAAM;YACvD;QACF;QACAJ,gBAAgBA,gBAAgB;IAClC;IACA,OAAOA;AACT;AAEO,SAAStM,2BACd2M,MAA0B;QAEnBA;IAAP,OAAOA,EAAAA,6BAAAA,OAAOC,YAAY,CAACC,KAAK,qBAAzBF,2BAA2BG,yBAAyB,KAAI;AACjE"}
@@ -67,7 +67,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
67
67
  return newObj;
68
68
  }
69
69
  function logStartInfo({ networkUrl, appUrl, envInfo, expFeatureInfo, maxExperimentalFeatures = Infinity }) {
70
- _log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.0.4-canary.15"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
70
+ _log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.0.4-canary.17"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
71
71
  if (appUrl) {
72
72
  _log.bootstrap(`- Local: ${appUrl}`);
73
73
  }
@@ -110,7 +110,7 @@ async function getRequestHandlers({ dir, port, isDev, onCleanup, server, hostnam
110
110
  async function startServer(serverOptions) {
111
111
  const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
112
112
  let { port } = serverOptions;
113
- process.title = `next-server (v${"15.0.4-canary.15"})`;
113
+ process.title = `next-server (v${"15.0.4-canary.17"})`;
114
114
  let handlersReady = ()=>{};
115
115
  let handlersError = ()=>{};
116
116
  let handlersPromise = new Promise((resolve, reject)=>{
@@ -81,7 +81,7 @@ function getAnonymousMeta() {
81
81
  isWsl: _iswsl.default,
82
82
  isCI: _ciinfo.isCI,
83
83
  ciName: _ciinfo.isCI && _ciinfo.name || null,
84
- nextVersion: "15.0.4-canary.15"
84
+ nextVersion: "15.0.4-canary.17"
85
85
  };
86
86
  return traits;
87
87
  }
@@ -11,11 +11,11 @@ Object.defineProperty(exports, "eventCliSessionStopped", {
11
11
  const EVENT_VERSION = 'NEXT_CLI_SESSION_STOPPED';
12
12
  function eventCliSessionStopped(event) {
13
13
  // This should be an invariant, if it fails our build tooling is broken.
14
- if (typeof "15.0.4-canary.15" !== 'string') {
14
+ if (typeof "15.0.4-canary.17" !== 'string') {
15
15
  return [];
16
16
  }
17
17
  const payload = {
18
- nextVersion: "15.0.4-canary.15",
18
+ nextVersion: "15.0.4-canary.17",
19
19
  nodeVersion: process.version,
20
20
  cliCommand: event.cliCommand,
21
21
  durationMilliseconds: event.durationMilliseconds,
@@ -36,12 +36,12 @@ function hasBabelConfig(dir) {
36
36
  function eventCliSession(dir, nextConfig, event) {
37
37
  var _nextConfig_experimental_staleTimes, _nextConfig_experimental_staleTimes1, _nextConfig_experimental_reactCompiler, _nextConfig_experimental_reactCompiler1;
38
38
  // This should be an invariant, if it fails our build tooling is broken.
39
- if (typeof "15.0.4-canary.15" !== 'string') {
39
+ if (typeof "15.0.4-canary.17" !== 'string') {
40
40
  return [];
41
41
  }
42
42
  const { images, i18n } = nextConfig || {};
43
43
  const payload = {
44
- nextVersion: "15.0.4-canary.15",
44
+ nextVersion: "15.0.4-canary.17",
45
45
  nodeVersion: process.version,
46
46
  cliCommand: event.cliCommand,
47
47
  isSrcDir: event.isSrcDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next",
3
- "version": "15.0.4-canary.15",
3
+ "version": "15.0.4-canary.17",
4
4
  "description": "The React Framework",
5
5
  "main": "./dist/server/next.js",
6
6
  "license": "MIT",
@@ -97,7 +97,7 @@
97
97
  ]
98
98
  },
99
99
  "dependencies": {
100
- "@next/env": "15.0.4-canary.15",
100
+ "@next/env": "15.0.4-canary.17",
101
101
  "@swc/counter": "0.1.3",
102
102
  "@swc/helpers": "0.5.13",
103
103
  "busboy": "1.6.0",
@@ -129,14 +129,14 @@
129
129
  },
130
130
  "optionalDependencies": {
131
131
  "sharp": "^0.33.5",
132
- "@next/swc-darwin-arm64": "15.0.4-canary.15",
133
- "@next/swc-darwin-x64": "15.0.4-canary.15",
134
- "@next/swc-linux-arm64-gnu": "15.0.4-canary.15",
135
- "@next/swc-linux-arm64-musl": "15.0.4-canary.15",
136
- "@next/swc-linux-x64-gnu": "15.0.4-canary.15",
137
- "@next/swc-linux-x64-musl": "15.0.4-canary.15",
138
- "@next/swc-win32-arm64-msvc": "15.0.4-canary.15",
139
- "@next/swc-win32-x64-msvc": "15.0.4-canary.15"
132
+ "@next/swc-darwin-arm64": "15.0.4-canary.17",
133
+ "@next/swc-darwin-x64": "15.0.4-canary.17",
134
+ "@next/swc-linux-arm64-gnu": "15.0.4-canary.17",
135
+ "@next/swc-linux-arm64-musl": "15.0.4-canary.17",
136
+ "@next/swc-linux-x64-gnu": "15.0.4-canary.17",
137
+ "@next/swc-linux-x64-musl": "15.0.4-canary.17",
138
+ "@next/swc-win32-arm64-msvc": "15.0.4-canary.17",
139
+ "@next/swc-win32-x64-msvc": "15.0.4-canary.17"
140
140
  },
141
141
  "devDependencies": {
142
142
  "@ampproject/toolbox-optimizer": "2.8.3",
@@ -169,11 +169,11 @@
169
169
  "@jest/types": "29.5.0",
170
170
  "@mswjs/interceptors": "0.23.0",
171
171
  "@napi-rs/triples": "1.2.0",
172
- "@next/font": "15.0.4-canary.15",
173
- "@next/polyfill-module": "15.0.4-canary.15",
174
- "@next/polyfill-nomodule": "15.0.4-canary.15",
175
- "@next/react-refresh-utils": "15.0.4-canary.15",
176
- "@next/swc": "15.0.4-canary.15",
172
+ "@next/font": "15.0.4-canary.17",
173
+ "@next/polyfill-module": "15.0.4-canary.17",
174
+ "@next/polyfill-nomodule": "15.0.4-canary.17",
175
+ "@next/react-refresh-utils": "15.0.4-canary.17",
176
+ "@next/swc": "15.0.4-canary.17",
177
177
  "@opentelemetry/api": "1.6.0",
178
178
  "@playwright/test": "1.41.2",
179
179
  "@swc/core": "1.7.0-nightly-20240714.1",