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

Function getInsertPreload

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

Source from the content-addressed store, hash-verified

251 */
252export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin[] {
253 const getInsertPreload = (environment: PartialEnvironment) =>
254 environment.config.consumer === 'client' &&
255 !config.isWorker &&
256 !config.build.lib
257
258 const renderBuiltUrl = config.experimental.renderBuiltUrl
259 const isRelativeBase = config.base === './' || config.base === ''

Callers 2

generateBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected