We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb10d16 commit 4c9d3ddCopy full SHA for 4c9d3dd
packages/compiler-sfc/src/compileScript.ts
@@ -1,5 +1,6 @@
1
import {
2
BindingTypes,
3
+ UNREF,
4
isFunctionType,
5
isStaticNode,
6
unwrapTSNode,
@@ -1041,7 +1042,12 @@ export function compileScript(
1041
1042
// avoid duplicated unref import
1043
// as this may get injected by the render function preamble OR the
1044
// css vars codegen
- if (helpers && helpers.has('unref')) {
1045
+ if (
1046
+ helpers &&
1047
+ (helpers.has(UNREF) ||
1048
+ // vapor compiler uses 'unref' instead of UNREF
1049
+ helpers.has('unref'))
1050
+ ) {
1051
ctx.helperImports.delete('unref')
1052
}
1053
returned = code
0 commit comments