|
|
@@ -1042,7 +1042,12 @@ export function compileScript(
|
|
|
// avoid duplicated unref import
|
|
|
// as this may get injected by the render function preamble OR the
|
|
|
// css vars codegen
|
|
|
- if (helpers && helpers.has(UNREF)) {
|
|
|
+ if (
|
|
|
+ helpers &&
|
|
|
+ (helpers.has(UNREF) ||
|
|
|
+ // vapor compiler uses 'unref' instead of UNREF
|
|
|
+ helpers.has('unref'))
|
|
|
+ ) {
|
|
|
ctx.helperImports.delete('unref')
|
|
|
}
|
|
|
returned = code
|