MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / resolve

Function resolve

.postcssrc.js:9–16  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

7 // Transform @import, resolve `@` to `src`
8 require('postcss-import')({
9 resolve(id) {
10 if (id.startsWith('~')) {
11 const parts = id.slice(1).split('/');
12 parts[0] = alias[parts[0]] || parts[0];
13 return require.resolve(parts.join('/'));
14 }
15 return id;
16 },
17 }),
18 // Calculate at compile time
19 require('postcss-calc'),

Callers 15

onElementFunction · 0.85
encodeBodyFunction · 0.85
onRequestCreateFunction · 0.85
loadIconFunction · 0.85
doneFunction · 0.85
limitConcurrencyFunction · 0.85
requestLocalFileFunction · 0.85
readBlobFunction · 0.85
cbFunction · 0.85
unwrapResponseFunction · 0.85
onCancelFunction · 0.85
onOkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected