We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dffade0 commit ae3dea0Copy full SHA for ae3dea0
src/detect.ts
@@ -79,6 +79,11 @@ let _isNativeTsImportSupported: boolean | undefined
79
80
export async function isNativeTsImportSupported(): Promise<boolean> {
81
if (_isNativeTsImportSupported === undefined) {
82
+ // @ts-expect-error missing `typescript` property
83
+ // eslint-disable-next-line node/prefer-global/process
84
+ if (typeof process !== 'undefined' && process.features?.typescript) {
85
+ return _isNativeTsImportSupported = true
86
+ }
87
try {
88
const modName = 'dummy.mts'
89
const mod = await import(`../runtime-fixtures/${modName}`)
0 commit comments