Commit 2b7ca406 authored by Joe Haddad's avatar Joe Haddad Committed by Tim Neutkens

Revert "Detect built ins in externals (#7083)" (#7107)

This reverts commit f8978cc2.
parent 08a60666
...@@ -90,9 +90,8 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, d ...@@ -90,9 +90,8 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, d
'string-hash', 'string-hash',
'next/constants' 'next/constants'
] ]
const nodeBuiltins = new Set([...require("repl")._builtinLibs, "constants", "module", "timers", "console", "_stream_writable", "_stream_readable", "_stream_duplex"])
if (notExternalModules.indexOf(request) !== -1 || nodeBuiltins.has(request)) { if (notExternalModules.indexOf(request) !== -1) {
return callback() return callback()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment