Skip to content

Commit

Permalink
chore: refactor string replacement for 'vue'
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Feb 22, 2024
1 parent 4b2fd64 commit 7e5e75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ async function doCompileScript(
}
if (ssr) {
compiledScript.content = compiledScript.content.replaceAll(
/'vue'/g,
"'vue-esm'",
/(['"])vue\1/g,
'$1vue-esm$1',
)
}
code +=
Expand Down

0 comments on commit 7e5e75b

Please sign in to comment.