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
  31b20170_507e_c5fb_e49a_f50a0fbff272["parseUriParts()"]
  90eed22c_58dc_8abb_a418_7c84bdd13880["urlToRequire()"]
  90eed22c_58dc_8abb_a418_7c84bdd13880 -->|calls| 31b20170_507e_c5fb_e49a_f50a0fbff272
  style 31b20170_507e_c5fb_e49a_f50a0fbff272 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