MCPcopy Create free account
hub / github.com/webpack/mini-css-extract-plugin / toSimpleString

Function toSimpleString

src/utils.js:221–227  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

219 * @returns {string} string
220 */
221const toSimpleString = (str) => {
222 // eslint-disable-next-line no-implicit-coercion
223 if (`${+str}` === str) {
224 return str;
225 }
226 return JSON.stringify(str);
227};
228
229/**
230 * @param {string} str string

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…