Skip to content

Commit

Permalink
feat(compiler-sfc): export resolveTemplateUsageCheckString for HMR pl…
Browse files Browse the repository at this point in the history
…ugin use (#4908)
  • Loading branch information
ygj6 committed Nov 26, 2021
1 parent 6d46b36 commit c61baac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/compileScript.ts
Expand Up @@ -1960,7 +1960,7 @@ function getObjectOrArrayExpressionKeys(value: Node): string[] {

const templateUsageCheckCache = createCache<string>()

function resolveTemplateUsageCheckString(sfc: SFCDescriptor) {
export function resolveTemplateUsageCheckString(sfc: SFCDescriptor) {
const { content, ast } = sfc.template!
const cached = templateUsageCheckCache.get(content)
if (cached) {
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/index.ts
Expand Up @@ -2,7 +2,7 @@
export { parse } from './parse'
export { compileTemplate } from './compileTemplate'
export { compileStyle, compileStyleAsync } from './compileStyle'
export { compileScript } from './compileScript'
export { compileScript, resolveTemplateUsageCheckString } from './compileScript'
export { rewriteDefault } from './rewriteDefault'
export {
shouldTransform as shouldTransformRef,
Expand Down

0 comments on commit c61baac

Please sign in to comment.