Skip to content

Commit a24809f

Browse files
authoredFeb 26, 2024
chore: limit typescript lib to es2016 (vuejs#10164)
* chore: limit typescript lib to es2015 * chore: set target to es2015 * chore: update
1 parent 822cb72 commit a24809f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎packages/reactivity/__tests__/gc.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe.skipIf(!global.gc)('reactivity/gc', () => {
2121
// #9233
2222
it('should release computed cache', async () => {
2323
const src = ref<{} | undefined>({})
24+
// @ts-expect-error ES2021 API
2425
const srcRef = new WeakRef(src.value!)
2526

2627
let c: ComputedRef | undefined = computed(() => src.value)

‎tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"esModuleInterop": true,
1919
"removeComments": false,
2020
"jsx": "preserve",
21-
"lib": ["esnext", "dom"],
21+
"lib": ["es2016", "dom"],
2222
"types": ["vitest/globals", "puppeteer", "node"],
2323
"rootDir": ".",
2424
"paths": {

0 commit comments

Comments
 (0)