fix(types): avoid exposing lru-cache types in generated dts

close #9521
This commit is contained in:
Evan You 2023-11-06 17:35:50 +08:00
parent 32bdc5d190
commit 462aeb3b60
1 changed files with 5 additions and 1 deletions

View File

@ -1,13 +1,17 @@
export const version = __VERSION__
// API
export { parse, parseCache } from './parse'
export { parse } from './parse'
export { compileTemplate } from './compileTemplate'
export { compileStyle, compileStyleAsync } from './compileStyle'
export { compileScript } from './compileScript'
export { rewriteDefault, rewriteDefaultAST } from './rewriteDefault'
export { resolveTypeElements, inferRuntimeType } from './script/resolveType'
import { SFCParseResult, parseCache as _parseCache } from './parse'
// #9521 export parseCache as a simple map to avoid exposing LRU types
export const parseCache = _parseCache as Map<string, SFCParseResult>
// TODO remove in 3.4
export {
shouldTransform as shouldTransformRef,