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

Function getInsertPreload

packages/vite/src/node/plugins/importAnalysisBuild.ts:204–207  ·  view source on GitHub ↗
(environment: PartialEnvironment)

Source from the content-addressed store, hash-verified

202 */
203export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin[] {
204 const getInsertPreload = (environment: PartialEnvironment) =>
205 environment.config.consumer === 'client' &&
206 !config.isWorker &&
207 !config.build.lib
208
209 const renderBuiltUrl = config.experimental.renderBuiltUrl
210 const isRelativeBase = config.base === './' || config.base === ''

Callers 2

generateBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected