chore: limit typescript lib to es2016 (#10164)

* chore: limit typescript lib to es2015

* chore: set target to es2015

* chore: update
This commit is contained in:
三咲智子 Kevin Deng 2024-02-26 09:37:05 +08:00 committed by GitHub
parent 822cb72e01
commit a24809fbd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View 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)

View File

@ -18,7 +18,7 @@
"esModuleInterop": true,
"removeComments": false,
"jsx": "preserve",
"lib": ["esnext", "dom"],
"lib": ["es2016", "dom"],
"types": ["vitest/globals", "puppeteer", "node"],
"rootDir": ".",
"paths": {