Skip to content

Commit

Permalink
Revert --require module loading
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Nov 15, 2019
1 parent 3d92f25 commit 746c222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin.ts
Expand Up @@ -198,7 +198,7 @@ export function main (argv: string[]) {
module.paths = (Module as any)._nodeModulePaths(cwd)

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

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

0 comments on commit 746c222

Please sign in to comment.