File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
test/development/basic/node-builtins/app/server-component Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -844,6 +844,8 @@ export default async function getBaseWebpackConfig(
844
844
845
845
const aliasCodeConditionTest = [ codeCondition . test , pageExtensionsRegex ]
846
846
847
+ const builtinModules = require ( 'module' ) . builtinModules
848
+
847
849
let webpackConfig : webpack . Configuration = {
848
850
parallelism : Number ( process . env . NEXT_WEBPACK_PARALLELISM ) || undefined ,
849
851
...( isNodeServer ? { externalsPresets : { node : true } } : { } ) ,
@@ -867,6 +869,7 @@ export default async function getBaseWebpackConfig(
867
869
: [ ] ) ,
868
870
]
869
871
: [
872
+ ...builtinModules ,
870
873
( {
871
874
context,
872
875
request,
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ import timers from 'timers'
18
18
import tty from 'tty'
19
19
import util from 'util'
20
20
import zlib from 'zlib'
21
+
22
+ import '_http_common'
21
23
import 'setimmediate'
22
24
23
25
async function getData ( ) {
You can’t perform that action at this time.
0 commit comments