Skip to content

Commit 44fef67

Browse files
authored
fix: detect mdcUnwrap on slots too (#388)
1 parent 58e5ef0 commit 44fef67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/vue-mdc-slot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const registerMDCSlotTransformer = (resolver: Resolver) => {
66
const compilerOptions = (config as any).vue.template.compilerOptions
77
compilerOptions.nodeTransforms = [
88
<NodeTransform> function viteMDCSlot(node: ElementNode, context) {
9-
const isVueSlotWithUnwrap = node.tag === 'slot' && node.props.find(p => p.name === 'mdc-unwrap' || (p.name === 'bind' && (p as DirectiveNode).rawName === ':mdc-unwrap'))
9+
const isVueSlotWithUnwrap = node.tag === 'slot' && node.props.find(p => p.name === 'mdc-unwrap' || p.name === 'mdcUnwrap' || (p.name === 'bind' && (p as DirectiveNode).rawName === ':mdc-unwrap'))
1010
const isMDCSlot = node.tag === 'MDCSlot'
1111

1212
if (isVueSlotWithUnwrap || isMDCSlot) {

0 commit comments

Comments
 (0)