MCPcopy
hub / github.com/nuxt/nuxt / wrapWithVForDiv

Function wrapWithVForDiv

packages/nuxt/src/components/plugins/islands-transform.ts:34–36  ·  view source on GitHub ↗
(code: string, vfor: string)

Source from the content-addressed store, hash-verified

32const KEY_RE = /:?key="[^"]"/g
33
34function wrapWithVForDiv (code: string, vfor: string): string {
35 return `<div v-for="${vfor}" style="display: contents;">${code}</div>`
36}
37
38export const IslandsTransformPlugin = (options: ServerOnlyComponentTransformPluginOptions) => createUnplugin((_options, meta) => {
39 const isVite = meta.framework === 'vite'

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…