Skip to content

Commit

Permalink
make comment better
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Dec 14, 2019
1 parent e7690b9 commit 48b57cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Expand Up @@ -339,9 +339,8 @@ export function create (options: CreateOptions = {}): Register {
const compilerBefore = options.compiler

/**
* Load the typescript compiler. It is required to parse the tsconfig, but
* might be changed by options specified in the tsconfig, so we might need to
* do this twice if the `compiler` option changes.
* Load the typescript compiler. It is required to load the tsconfig but might
* be changed by the tsconfig, so we sometimes have to do this twice.
*/
function loadCompiler () {
const compiler = require.resolve(options.compiler || 'typescript', { paths: [cwd, __dirname] })
Expand Down

0 comments on commit 48b57cf

Please sign in to comment.