Skip to content

Commit

Permalink
feat: support delimiters option for runtime compilation
Browse files Browse the repository at this point in the history
close #1679
  • Loading branch information
yyx990803 committed Jul 23, 2020
1 parent 7edfdf7 commit c219cbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ function finishComponentSetup(
startMeasure(instance, `compile`)
}
Component.render = compile(Component.template, {
isCustomElement: instance.appContext.config.isCustomElement || NO
isCustomElement: instance.appContext.config.isCustomElement || NO,
delimiters: Component.delimiters
})
if (__DEV__) {
endMeasure(instance, `compile`)
Expand Down
3 changes: 3 additions & 0 deletions packages/runtime-core/src/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ interface LegacyOptions<
renderTracked?: DebuggerHook
renderTriggered?: DebuggerHook
errorCaptured?: ErrorCapturedHook

// runtime compile only
delimiters?: [string, string]
}

export type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M'
Expand Down

0 comments on commit c219cbf

Please sign in to comment.