MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / emitSourcemapForWorkerEntry

Function emitSourcemapForWorkerEntry

packages/vite/src/bridge/worker.ts:224–235  ·  view source on GitHub ↗
(config: ResolvedConfig, chunk: BundledWorkerChunk)

Source from the content-addressed store, hash-verified

222
223// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/plugins/worker.ts#L124
224function emitSourcemapForWorkerEntry(config: ResolvedConfig, chunk: BundledWorkerChunk): BundledWorkerChunk {
225 const sourcemap = chunk.map;
226 if (sourcemap) {
227 if (config.build.sourcemap === 'hidden' || config.build.sourcemap === true) {
228 saveEmitWorkerAsset(config, {
229 fileName: `${chunk.fileName}.map`,
230 source: sourcemap.toString()
231 });
232 }
233 }
234 return chunk;
235}
236
237// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/plugins/worker.ts#L458
238/**

Callers 1

bundleWorkerEntryFunction · 0.85

Calls 2

saveEmitWorkerAssetFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected