Skip to content

Commit c219cbf

Browse files
committed
feat: support delimiters option for runtime compilation
close #1679
1 parent 7edfdf7 commit c219cbf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/runtime-core/src/component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@ function finishComponentSetup(
607607
startMeasure(instance, `compile`)
608608
}
609609
Component.render = compile(Component.template, {
610-
isCustomElement: instance.appContext.config.isCustomElement || NO
610+
isCustomElement: instance.appContext.config.isCustomElement || NO,
611+
delimiters: Component.delimiters
611612
})
612613
if (__DEV__) {
613614
endMeasure(instance, `compile`)

packages/runtime-core/src/componentOptions.ts

+3
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ interface LegacyOptions<
321321
renderTracked?: DebuggerHook
322322
renderTriggered?: DebuggerHook
323323
errorCaptured?: ErrorCapturedHook
324+
325+
// runtime compile only
326+
delimiters?: [string, string]
324327
}
325328

326329
export type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M'

0 commit comments

Comments
 (0)