Skip to content

Commit 746c222

Browse files
committed
Revert --require module loading
1 parent 3d92f25 commit 746c222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export function main (argv: string[]) {
198198
module.paths = (Module as any)._nodeModulePaths(cwd)
199199

200200
// Require specified modules before start-up.
201-
for (const id of requires) module.require(id)
201+
;(Module as any)._preloadModules(requires)
202202

203203
// Prepend `ts-node` arguments to CLI for child processes.
204204
process.execArgv.unshift(__filename, ...process.argv.slice(2, process.argv.length - args._.length))

0 commit comments

Comments
 (0)