-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
featureIncludes new featuresIncludes new features🍰 p2-nice-to-havePriority 2: nothing is broken but it's worth addressingPriority 2: nothing is broken but it's worth addressing
Description
const App = defineComponent({
components: { Comp1, Comp2 },
ssrRender: compileWithCustomDirective(
`
<div v-t="{ path: 'hello' }"/>
<Comp1 />
<Comp2 />`,
transformVT
)
})
const app = createSSRApp(App)
app.use(i18n)
await renderToString(app)
To apply the transformVT function to components Comp1 and Comp2, is it necessary to override ssrRender in both Comp1 and Comp2? Is there a better way to make transformVT apply globally?
Metadata
Metadata
Assignees
Labels
featureIncludes new featuresIncludes new features🍰 p2-nice-to-havePriority 2: nothing is broken but it's worth addressingPriority 2: nothing is broken but it's worth addressing