MCPcopy
hub / github.com/FredKSchott/snowpack / format

Function format

plugins/plugin-optimize/util.js:41–41  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

39/** Build Import */
40function formatManifest({manifest, buildDirectory, generatedFiles, preloadCSS}) {
41 const format = (url) => (isRemoteModule(url) ? url : projectURL(url, buildDirectory));
42
43 const sorted = Object.entries(manifest).map(([k, v]) => {
44 const entry = v.entry.map(format);

Callers 2

formatManifestFunction · 0.70
toSingleArgumentFunction · 0.50

Calls 2

isRemoteModuleFunction · 0.85
projectURLFunction · 0.85

Tested by

no test coverage detected