Home / Function/ stripTemplateString() — vue Function Reference

stripTemplateString() — vue Function Reference

Architecture documentation for the stripTemplateString() function in compileScript.ts from the vue codebase.

Entity Profile

Relationship Graph

Source Code

packages/compiler-sfc/src/compileScript.ts lines 1871–1877

function stripTemplateString(str: string): string {
  const interpMatch = str.match(/\${[^}]+}/g)
  if (interpMatch) {
    return interpMatch.map(m => m.slice(2, -1)).join(',')
  }
  return ''
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free