Skip to content

Commit 4139219

Browse files
authored
Merge pull request #170 from underfin/fix-esm-build
fix: fix esm build
2 parents 2a66bd2 + 3cfe76a commit 4139219

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/compileSlots.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { compile } from '@vue/compiler-dom'
2+
import * as vue from 'vue'
23

3-
export function processSlot(template = '', Vue = require('vue')) {
4+
export function processSlot(template = '', Vue = vue) {
45
const hasWrappingTemplate = template && template.startsWith('<template')
56

67
// allow content without `template` tag, for easier testing

0 commit comments

Comments
 (0)