diff --git a/packages/reactivity/__tests__/gc.spec.ts b/packages/reactivity/__tests__/gc.spec.ts index 953765dd1d9..76841d2a8ff 100644 --- a/packages/reactivity/__tests__/gc.spec.ts +++ b/packages/reactivity/__tests__/gc.spec.ts @@ -21,6 +21,7 @@ describe.skipIf(!global.gc)('reactivity/gc', () => { // #9233 it('should release computed cache', async () => { const src = ref<{} | undefined>({}) + // @ts-expect-error ES2021 API const srcRef = new WeakRef(src.value!) let c: ComputedRef | undefined = computed(() => src.value) diff --git a/tsconfig.json b/tsconfig.json index f47b7fc8eb9..6ba420775f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,7 @@ "esModuleInterop": true, "removeComments": false, "jsx": "preserve", - "lib": ["esnext", "dom"], + "lib": ["es2016", "dom"], "types": ["vitest/globals", "puppeteer", "node"], "rootDir": ".", "paths": {