File tree Expand file tree Collapse file tree 8 files changed +20
-35
lines changed
test/e2e/edge-runtime-uses-edge-light-import-specifier-for-packages Expand file tree Collapse file tree 8 files changed +20
-35
lines changed Original file line number Diff line number Diff line change @@ -2544,9 +2544,9 @@ export default async function getBaseWebpackConfig(
25442544 }
25452545
25462546 if ( dev && originalDevtool !== webpackConfig . devtool ) {
2547- webpackConfig . devtool = originalDevtool
25482547 devtoolRevertWarning ( originalDevtool )
25492548 }
2549+ webpackConfig . devtool = 'source-map'
25502550
25512551 // eslint-disable-next-line @typescript-eslint/no-shadow
25522552 const webpack5Config = webpackConfig as webpack . Configuration
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const base = curry(function base(
3939 // original source, including columns and original variable names.
4040 // This is desirable so the in-browser debugger can correctly pause
4141 // and show scoped variables with their original names.
42- config . devtool = 'eval- source-map'
42+ config . devtool = 'source-map'
4343 } else {
4444 if (
4545 ctx . isEdgeRuntime ||
Original file line number Diff line number Diff line change @@ -476,6 +476,7 @@ function sourceMapError(
476476export function patchErrorInspectNodeJS (
477477 errorConstructor : ErrorConstructor
478478) : void {
479+ return
479480 const inspectSymbol = Symbol . for ( 'nodejs.util.inspect.custom' )
480481
481482 errorConstructor . prepareStackTrace = prepareUnsourcemappedStackTrace
@@ -516,6 +517,7 @@ export function patchErrorInspectNodeJS(
516517export function patchErrorInspectEdgeLite (
517518 errorConstructor : ErrorConstructor
518519) : void {
520+ return
519521 const inspectSymbol = Symbol . for ( 'edge-runtime.inspect.custom' )
520522
521523 errorConstructor . prepareStackTrace = prepareUnsourcemappedStackTrace
Original file line number Diff line number Diff line change @@ -130,6 +130,11 @@ export class PagesRouteModule extends RouteModule<
130130 constructor ( options : PagesRouteModuleOptions ) {
131131 super ( options )
132132
133+ console . trace ( 'new PagesRouteModule' , [
134+ options . definition . page ,
135+ options . relativeProjectDir ,
136+ ] )
137+
133138 this . components = options . components
134139 }
135140
Original file line number Diff line number Diff line change @@ -875,6 +875,17 @@ export abstract class RouteModule<
875875 const relativeProjectDir =
876876 getRequestMeta ( req , 'relativeProjectDir' ) || this . relativeProjectDir
877877
878+ console . log ( 'prepare relativeProjectDir' , this . definition . page , [
879+ routerServerGlobal [ RouterServerContextSymbol ] &&
880+ Object . keys ( routerServerGlobal [ RouterServerContextSymbol ] ) ,
881+ routerServerGlobal [ RouterServerContextSymbol ] ?. [ relativeProjectDir ] &&
882+ Object . keys (
883+ routerServerGlobal [ RouterServerContextSymbol ] ?. [ relativeProjectDir ]
884+ ) ,
885+ getRequestMeta ( req , 'relativeProjectDir' ) ,
886+ this . relativeProjectDir ,
887+ ] )
888+
878889 const routerServerContext =
879890 routerServerGlobal [ RouterServerContextSymbol ] ?. [ relativeProjectDir ]
880891 const nextConfig =
@@ -923,7 +934,6 @@ export abstract class RouteModule<
923934 isOnDemandRevalidate,
924935 revalidateOnlyGenerated,
925936 ...manifests ,
926- clientReferenceManifest : manifests . clientReferenceManifest ,
927937 nextConfig,
928938 routerServerContext,
929939 }
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments