MCPcopy
hub / github.com/vitejs/vite / isNodeMode

Function isNodeMode

packages/vite/src/node/plugins/importAnalysis.ts:458–461  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

456 ? false
457 : undefined
458 const isNodeMode = () => {
459 _isNodeModeResult ??= isFilePathESM(importer, config.packageCache)
460 return _isNodeModeResult
461 }
462
463 await Promise.all(
464 imports.map(async (importSpecifier, index) => {

Callers 1

transformFunction · 0.85

Calls 1

isFilePathESMFunction · 0.90

Tested by

no test coverage detected