MCPcopy
hub / github.com/nuxt/nuxt / handler

Function handler

packages/nuxt/src/core/plugins/unctx.ts:32–44  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

30 },
31 },
32 handler (code) {
33 // TODO: needed for webpack - update transform in unctx/unplugin?
34 if (!transformer.shouldTransform(code)) { return }
35 const result = transformer.transform(code)
36 if (result) {
37 return {
38 code: TRANSFORM_MARKER + result.code,
39 map: options.sourcemap
40 ? result.magicString.generateMap({ hires: true })
41 : undefined,
42 }
43 }
44 },
45 },
46 }
47})

Callers 3

handleNavigationFunction · 0.50
buildAsyncDataFunction · 0.50
dev-server-logs.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…