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

Function transform

extension/build.ts:136–141  ·  view source on GitHub ↗
(code, id)

Source from the content-addressed store, hash-verified

134 name: 'replace-version',
135 enforce: 'pre',
136 transform(code, id) {
137 if (id.includes('solid-devtools')) {
138 code = code.replace(/import\.meta\.env\.EXPECTED_CLIENT/g, main_version)
139 }
140 return code
141 },
142 },
143 solid({dev: false, hot: false}),
144 crx.crx({

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…