Skip to content

Commit

Permalink
fix: addlib global
Browse files Browse the repository at this point in the history
  • Loading branch information
Saber2pr committed Jul 27, 2022
1 parent 7329e25 commit 48b7350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/typescript.ts
Expand Up @@ -22,7 +22,9 @@ export const addExtraLib = (
return
}
}
return defaults.addExtraLib(content, filePath)
return filePath
? defaults.addExtraLib(content, filePath)
: defaults.addExtraLib(content)
}

export const compileTS = async (
Expand Down

0 comments on commit 48b7350

Please sign in to comment.