Skip to content

Commit

Permalink
fix: use cjd module for ts-node
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed May 4, 2020
1 parent a1e6be8 commit fae0298
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/import-module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { register } from 'ts-node'

register({ transpileOnly: true })
register({
transpileOnly: true,
compilerOptions: {
module: 'commonjs',
},
})

export function esModuleInterop<T>(box?: T): T {
if (box === undefined) {
Expand Down

0 comments on commit fae0298

Please sign in to comment.