File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/gatsby/src/utils Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -872,14 +872,17 @@ module.exports = async (
872872 const builtinsExternalsDictionary = builtinModules . reduce (
873873 ( acc , builtinModule ) => {
874874 if ( builtinModulesToTrack . includes ( builtinModule ) ) {
875- acc [ builtinModule ] = `commonjs ${ path . join (
875+ const builtinModuleTracked = path . join (
876876 program . directory ,
877877 `.cache` ,
878878 `ssr-builtin-trackers` ,
879879 builtinModule
880- ) } `
880+ )
881+ acc [ builtinModule ] = `commonjs ${ builtinModuleTracked } `
882+ acc [ `node:${ builtinModule } ` ] = `commonjs ${ builtinModuleTracked } `
881883 } else {
882884 acc [ builtinModule ] = `commonjs ${ builtinModule } `
885+ acc [ `node:${ builtinModule } ` ] = `commonjs ${ builtinModule } `
883886 }
884887 return acc
885888 } ,
You can’t perform that action at this time.
0 commit comments