feat(compiler-sfc): export resolveTemplateUsageCheckString for HMR plugin use (#4908)
This commit is contained in:
parent
6d46b36e7c
commit
c61baac75a
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user