Skip to content

Commit 68403dd

Browse files
committed
feat(esm): No longer force to commonjs
1 parent 5ab8f8f commit 68403dd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/loader.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { register, RegisterOptions } from "ts-node";
44
import { TypeScriptCompileError } from "./typescript-compile-error.js";
55

66
export function TypeScriptLoader(options?: RegisterOptions): Loader {
7-
const tsNodeInstance = register({
8-
...options,
9-
compilerOptions: { module: "commonjs" },
10-
});
7+
const tsNodeInstance = register(options);
118
return async (path: string, content: string) => {
129
try {
1310
// cosmiconfig requires the transpiled configuration to be CJS

0 commit comments

Comments
 (0)