Skip to content

Commit

Permalink
Revert "Detect built ins in externals (#7083)" (#7107)
Browse files Browse the repository at this point in the history
This reverts commit f8978cc.
  • Loading branch information
Timer authored and timneutkens committed Apr 23, 2019
1 parent 08a6066 commit 2b7ca40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, d
'string-hash',
'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()
}

Expand Down

0 comments on commit 2b7ca40

Please sign in to comment.