Skip to content

Commit

Permalink
fix: vue2 compiler issue (#356)
Browse files Browse the repository at this point in the history
Co-authored-by: mercer.xu <mercer.xu@zoom.us>
  • Loading branch information
twt898xu and mercer.xu committed May 1, 2024
1 parent 30df7b7 commit c681526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/compilers/vue2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const Vue2Compiler = (async (
const { compile } = await importModule('vue-template-compiler')
// eslint-disable-next-line ts/prefer-ts-expect-error
// @ts-ignore @ts-expect-error
const transpile = (await importModule('vue-template-es2015-compiler'))
.default
const transpileMod = (await importModule('vue-template-es2015-compiler'))
const transpile = transpileMod.default || transpileMod

const { injectScripts, svg: handled } = handleSVGId(svg)

Expand Down

0 comments on commit c681526

Please sign in to comment.