mirror of https://github.com/vuejs/core.git
fix(types): avoid exposing lru-cache types in generated dts
close #9521
This commit is contained in:
parent
32bdc5d190
commit
462aeb3b60
|
@ -1,13 +1,17 @@
|
||||||
export const version = __VERSION__
|
export const version = __VERSION__
|
||||||
|
|
||||||
// API
|
// API
|
||||||
export { parse, parseCache } from './parse'
|
export { parse } from './parse'
|
||||||
export { compileTemplate } from './compileTemplate'
|
export { compileTemplate } from './compileTemplate'
|
||||||
export { compileStyle, compileStyleAsync } from './compileStyle'
|
export { compileStyle, compileStyleAsync } from './compileStyle'
|
||||||
export { compileScript } from './compileScript'
|
export { compileScript } from './compileScript'
|
||||||
export { rewriteDefault, rewriteDefaultAST } from './rewriteDefault'
|
export { rewriteDefault, rewriteDefaultAST } from './rewriteDefault'
|
||||||
export { resolveTypeElements, inferRuntimeType } from './script/resolveType'
|
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
|
// TODO remove in 3.4
|
||||||
export {
|
export {
|
||||||
shouldTransform as shouldTransformRef,
|
shouldTransform as shouldTransformRef,
|
||||||
|
|
Loading…
Reference in New Issue