Skip to content

Commit

Permalink
chore: limit typescript lib to es2016 (#10164)
Browse files Browse the repository at this point in the history
* chore: limit typescript lib to es2015

* chore: set target to es2015

* chore: update
  • Loading branch information
sxzz authored Feb 26, 2024
1 parent 822cb72 commit a24809f
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": ["es2016", "dom"],
"types": ["vitest/globals", "puppeteer", "node"],
"rootDir": ".",
"paths": {
Expand Down

0 comments on commit a24809f

Please sign in to comment.