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

Method constructor

packages/vite/src/node/server/moduleGraph.ts:74–81  ·  view source on GitHub ↗

* @param setIsSelfAccepting - set `false` to set `isSelfAccepting` later. e.g. #7870

(url: string, environment: string, setIsSelfAccepting = true)

Source from the content-addressed store, hash-verified

72 * @param setIsSelfAccepting - set `false` to set `isSelfAccepting` later. e.g. #7870
73 */
74 constructor(url: string, environment: string, setIsSelfAccepting = true) {
75 this.environment = environment
76 this.url = url
77 this.type = isDirectCSSRequest(url) ? 'css' : 'js'
78 if (setIsSelfAccepting) {
79 this.isSelfAccepting = false
80 }
81 }
82}
83
84export type ResolvedUrl = [

Callers

nothing calls this directly

Calls 1

isDirectCSSRequestFunction · 0.90

Tested by

no test coverage detected