MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / load

Function load

packages/main/src/vite/vite.ts:84–96  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

82 if (id === DevtoolsModule.Main) return DevtoolsModule.Main
83 },
84 load(id) {
85 // Inject runtime debugger script
86 if (id !== DevtoolsModule.Main) return
87
88 let code = `import "${DevtoolsModule.Setup}";`
89
90 if (options.locator) {
91 code += `\nimport { setLocatorOptions } from "${DevtoolsModule.Setup}";
92 setLocatorOptions(${JSON.stringify(options.locator)});`
93 }
94
95 return code
96 },
97 async transform(source, id, transformOptions) {
98
99 // production and server should be disabled

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…