File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const registerMDCSlotTransformer = (resolver: Resolver) => {
6
6
const compilerOptions = ( config as any ) . vue . template . compilerOptions
7
7
compilerOptions . nodeTransforms = [
8
8
< 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' ) )
10
10
const isMDCSlot = node . tag === 'MDCSlot'
11
11
12
12
if ( isVueSlotWithUnwrap || isMDCSlot ) {
You can’t perform that action at this time.
0 commit comments