]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: limit typescript lib to es2016 (#10164)
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Mon, 26 Feb 2024 01:37:05 +0000 (09:37 +0800)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2024 01:37:05 +0000 (09:37 +0800)
* chore: limit typescript lib to es2015

* chore: set target to es2015

* chore: update

packages/reactivity/__tests__/gc.spec.ts
tsconfig.json

index 953765dd1d9c69b1ab283d075238b2534ce192df..76841d2a8ff2033ac39ac56e01ea46a24a0dcd15 100644 (file)
@@ -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)
index f47b7fc8eb9b00d692065b7358ef4f9d204150c0..6ba420775f7c6b6e69f113e26e86b223a018fee5 100644 (file)
@@ -18,7 +18,7 @@
     "esModuleInterop": true,
     "removeComments": false,
     "jsx": "preserve",
-    "lib": ["esnext", "dom"],
+    "lib": ["es2016", "dom"],
     "types": ["vitest/globals", "puppeteer", "node"],
     "rootDir": ".",
     "paths": {