Home / Function/ getLinks() — vite Function Reference

getLinks() — vite Function Reference

Architecture documentation for the getLinks() function in css-dynamic-import.spec.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  1ca210e3_4e1f_79c5_50da_ebe15bd53217["getLinks()"]
  dd71c169_a6c5_edad_b5a0_65b1cfb5183c["css-dynamic-import.spec.ts"]
  1ca210e3_4e1f_79c5_50da_ebe15bd53217 -->|defined in| dd71c169_a6c5_edad_b5a0_65b1cfb5183c
  style 1ca210e3_4e1f_79c5_50da_ebe15bd53217 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/css-dynamic-import/__tests__/css-dynamic-import.spec.ts lines 47–58

async function getLinks() {
  const links = await page.$$('link')
  return await Promise.all(
    links.map((handle) => {
      return handle.evaluate((link) => ({
        pathname: new URL(link.href).pathname,
        rel: link.rel,
        as: link.as,
      }))
    }),
  )
}

Domain

Subdomains

Frequently Asked Questions

What does getLinks() do?
getLinks() is a function in the vite codebase, defined in playground/css-dynamic-import/__tests__/css-dynamic-import.spec.ts.
Where is getLinks() defined?
getLinks() is defined in playground/css-dynamic-import/__tests__/css-dynamic-import.spec.ts at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free