MCPcopy
hub / github.com/vitejs/vite / resolve

Function resolve

playground/ssr-conditions/server.js:13–13  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

11 hmrPort,
12) {
13 const resolve = (p) => path.resolve(import.meta.dirname, p)
14
15 const indexProd = isProd
16 ? fs.readFileSync(resolve('dist/client/index.html'), 'utf-8')

Callers 2

createServerFunction · 0.70
serveFunction · 0.50

Calls 1

resolveMethod · 0.65

Tested by 1

serveFunction · 0.40