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

Function arraify

packages/vite/src/node/utils.ts:1118–1120  ·  view source on GitHub ↗
(target: T | T[])

Source from the content-addressed store, hash-verified

1116}
1117
1118export function arraify<T>(target: T | T[]): T[] {
1119 return Array.isArray(target) ? target : [target]
1120}
1121
1122// Taken from https://stackoverflow.com/a/36328890
1123export const multilineCommentsRE: RegExp = /\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//g

Callers 15

getResolvedOutDirsFunction · 0.90
resolveChokidarOptionsFunction · 0.90
resolveConfigFunction · 0.90
loadEnvFunction · 0.90
resolveEnvPrefixFunction · 0.90
resolveBuildPluginsFunction · 0.90
buildEnvironmentFunction · 0.90
normalizeFilterFunction · 0.90
convertTargetsFunction · 0.90
extractExportsDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected