Skip to content

Commit

Permalink
Merge pull request #170 from underfin/fix-esm-build
Browse files Browse the repository at this point in the history
fix: fix esm build
  • Loading branch information
lmiller1990 authored Aug 5, 2020
2 parents 2a66bd2 + 3cfe76a commit 4139219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/compileSlots.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { compile } from '@vue/compiler-dom'
import * as vue from 'vue'

export function processSlot(template = '', Vue = require('vue')) {
export function processSlot(template = '', Vue = vue) {
const hasWrappingTemplate = template && template.startsWith('<template')

// allow content without `template` tag, for easier testing
Expand Down

0 comments on commit 4139219

Please sign in to comment.