build: improve treeshakeability (#5682)

This commit is contained in:
宋铄运 (Alan Song)
2022-04-13 17:39:02 +08:00
committed by GitHub
parent 053c65bc5e
commit c6eb3cccce
7 changed files with 33 additions and 31 deletions

View File

@@ -35,6 +35,7 @@ import { warn } from './warning'
const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`)
const builtInSymbols = new Set(
/*#__PURE__*/
Object.getOwnPropertyNames(Symbol)
.map(key => (Symbol as any)[key])
.filter(isSymbol)

View File

@@ -4,7 +4,7 @@ import { ComputedGetter, ComputedRef } from './computed'
import { ReactiveFlags, toRaw } from './reactive'
import { trackRefValue, triggerRefValue } from './ref'
const tick = Promise.resolve()
const tick = /*#__PURE__*/ Promise.resolve()
const queue: any[] = []
let queued = false