MCPcopy Create free account
hub / github.com/pulsar-edit/pulsar / writeCachedJavaScript

Function writeCachedJavaScript

src/compile-cache.js:124–127  ·  view source on GitHub ↗
(relativeCachePath, code)

Source from the content-addressed store, hash-verified

122}
123
124function writeCachedJavaScript(relativeCachePath, code) {
125 const cachePath = path.join(cacheDirectory, relativeCachePath);
126 fs.writeFileSync(cachePath, code, 'utf8');
127}
128
129const INLINE_SOURCE_MAP_REGEXP = /\/\/[#@]\s*sourceMappingURL=([^'"\n]+)\s*$/gm;
130

Callers 1

compileFileAtPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected