MCPcopy Index your code
hub / github.com/stenciljs/core / transform

Function transform

src/compiler/bundle/worker-plugin.ts:20–28  ·  view source on GitHub ↗
(_, id)

Source from the content-addressed store, hash-verified

18 return {
19 name: 'workerPlugin',
20 transform(_, id) {
21 if (id.endsWith('?worker') || id.endsWith('?worker-inline')) {
22 return {
23 code: getMockedWorkerMain(),
24 map: { mappings: '' },
25 };
26 }
27 return null;
28 },
29 };
30 }
31

Callers

nothing calls this directly

Calls 10

getMockedWorkerMainFunction · 0.85
normalizeFsPathFunction · 0.85
getWorkerNameFunction · 0.85
getWorkerFunction · 0.85
getWorkerMainFunction · 0.85
getInlineWorkerFunction · 0.85
getWorkerEntryPathFunction · 0.85
getInlineWorkerProxyFunction · 0.85
getWorkerProxyFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected