Skip to content

Commit

Permalink
fix(types): avoid exposing lru-cache types in generated dts
Browse files Browse the repository at this point in the history
close #9521
  • Loading branch information
yyx990803 committed Nov 6, 2023
1 parent 32bdc5d commit 462aeb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/compiler-sfc/src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 462aeb3

Please sign in to comment.