Skip to content

Commit

Permalink
chore: limit typescript lib to es2015
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 20, 2024
1 parent ee4cd78 commit 4b31834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/reactivity/__tests__/gc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"esModuleInterop": true,
"removeComments": false,
"jsx": "preserve",
"lib": ["esnext", "dom"],
"lib": ["es2015", "dom"],
"types": ["vitest/globals", "puppeteer", "node"],
"rootDir": ".",
"paths": {
Expand Down

0 comments on commit 4b31834

Please sign in to comment.