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.
process.features
1 parent 8d31eea commit 856d3f0Copy full SHA for 856d3f0
packages/vite/src/node/__tests__/runnerImport.spec.ts
@@ -4,9 +4,8 @@ import { loadConfigFromFile } from 'vite'
4
import { runnerImport } from '../ssr/runnerImport'
5
import { slash } from '../../shared/utils'
6
7
-const [nvMajor, nvMinor] = process.versions.node.split('.').map(Number)
8
-const isTypeStrippingSupported =
9
- (nvMajor === 23 && nvMinor >= 6) || nvMajor >= 24
+// eslint-disable-next-line n/no-unsupported-features/node-builtins
+const isTypeStrippingSupported = !!process.features.typescript
10
11
describe('importing files using inlined environment', () => {
12
const fixture = (name: string) =>
0 commit comments