MCPcopy Index your code
hub / github.com/webpack/css-loader / printParams

Function printParams

src/utils.js:970–996  ·  view source on GitHub ↗
(media, dedupe, supports, layer)

Source from the content-addressed store, hash-verified

968}
969
970function printParams(media, dedupe, supports, layer) {
971 let result = "";
972
973 if (typeof layer !== "undefined") {
974 result = `, ${JSON.stringify(layer)}`;
975 }
976
977 if (typeof supports !== "undefined") {
978 result = `, ${JSON.stringify(supports)}${result}`;
979 } else if (result.length > 0) {
980 result = `, undefined${result}`;
981 }
982
983 if (dedupe) {
984 result = `, true${result}`;
985 } else if (result.length > 0) {
986 result = `, false${result}`;
987 }
988
989 if (media) {
990 result = `${JSON.stringify(media)}${result}`;
991 } else if (result.length > 0) {
992 result = `""${result}`;
993 }
994
995 return result;
996}
997
998function getModuleCode(
999 result,

Callers 1

getModuleCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…