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 8bd4946 commit 648d70fCopy full SHA for 648d70f
lib/utils/ts-utils/typescript.js
@@ -33,8 +33,11 @@ module.exports = {
33
* Get TypeScript instance
34
*/
35
function getTypeScript() {
36
+ if (cacheTypeScript) {
37
+ return cacheTypeScript
38
+ }
39
try {
- return (cacheTypeScript ??= require('typescript'))
40
+ return (cacheTypeScript = require('typescript'))
41
} catch (error) {
42
if (/** @type {any} */ (error).code === 'MODULE_NOT_FOUND') {
43
return undefined
0 commit comments