wip: ignore non-ref const mutation cases in codegen

This commit is contained in:
Evan You
2020-11-18 21:16:09 -05:00
parent 8567feb2aa
commit 64160e89cc
5 changed files with 51 additions and 61 deletions

View File

@@ -1,5 +1,4 @@
import {
ComponentPublicInstance,
getCurrentInstance,
onMounted,
warn,
@@ -14,9 +13,7 @@ import { ShapeFlags } from '@vue/shared'
* Runtime helper for SFC's CSS variable injection feature.
* @private
*/
export function useCssVars(
getter: (ctx: ComponentPublicInstance) => Record<string, string>
) {
export function useCssVars(getter: (ctx: any) => Record<string, string>) {
const instance = getCurrentInstance()
/* istanbul ignore next */
if (!instance) {