Browse Source

chore: limit typescript lib to es2016 (#10164)

* chore: limit typescript lib to es2015

* chore: set target to es2015

* chore: update
pull/10410/head
三咲智子 Kevin Deng 1 year ago
committed by GitHub
parent
commit
a24809fbd2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      packages/reactivity/__tests__/gc.spec.ts
  2. 2
      tsconfig.json

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

2
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": {

Loading…
Cancel
Save