Home / Function/ parseUriParts() — vue Function Reference

parseUriParts() — vue Function Reference

Architecture documentation for the parseUriParts() function in utils.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  4bc13eab_721c_1277_2f90_945594c2d7c5["parseUriParts()"]
  924fad0f_bcf5_3302_0184_f5a0b88ea288["urlToRequire()"]
  924fad0f_bcf5_3302_0184_f5a0b88ea288 -->|calls| 4bc13eab_721c_1277_2f90_945594c2d7c5
  style 4bc13eab_721c_1277_2f90_945594c2d7c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/templateCompilerModules/utils.ts lines 64–76

function parseUriParts(urlString: string): UrlWithStringQuery {
  // initialize return value
  const returnValue: UrlWithStringQuery = uriParse('')
  if (urlString) {
    // A TypeError is thrown if urlString is not a string
    // @see https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost
    if ('string' === typeof urlString) {
      // check is an uri
      return uriParse(urlString, false, true) // take apart the uri
    }
  }
  return returnValue
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does parseUriParts() do?
parseUriParts() is a function in the vue codebase.
What calls parseUriParts()?
parseUriParts() is called by 1 function(s): urlToRequire.

Analyze Your Own Codebase

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

Try Supermodel Free