We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab8f8f commit 68403ddCopy full SHA for 68403dd
lib/loader.ts
@@ -4,10 +4,7 @@ import { register, RegisterOptions } from "ts-node";
4
import { TypeScriptCompileError } from "./typescript-compile-error.js";
5
6
export function TypeScriptLoader(options?: RegisterOptions): Loader {
7
- const tsNodeInstance = register({
8
- ...options,
9
- compilerOptions: { module: "commonjs" },
10
- });
+ const tsNodeInstance = register(options);
11
return async (path: string, content: string) => {
12
try {
13
// cosmiconfig requires the transpiled configuration to be CJS
0 commit comments