Skip to content

Commit

Permalink
chore: limit typescript lib to es2016 (vuejs#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 and OnlyWick committed Feb 27, 2024
1 parent 707a0ec commit d24abd9
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 d24abd9

Please sign in to comment.