MCPcopy
hub / github.com/webpack/webpack / replace

Method replace

test/helpers/FakeDocument.js:636–641  ·  test/helpers/FakeDocument.js::CSSStyleSheet.replace

* Asynchronously replace the stylesheet content * @param {string} cssText CSS text content * @returns {Promise<CSSStyleSheet>} Promise that resolves to this stylesheet

(cssText)

Source from the content-addressed store, hash-verified

634 * @returns {Promise<CSSStyleSheet>} Promise that resolves to this stylesheet
635 */
636 replace(cssText) {
637 return Promise.resolve().then(() => {
638 this.replaceSync(cssText);
639 return this;
640 });
641 }
642
643 /**
644 * Get the parsed CSS rules

Callers 15

quoteMetaFunction · 0.45
sanitizeFilenameFunction · 0.45
unescapeFunction · 0.45
quoteMetaFunction · 0.45
normalizeStringFunction · 0.45
escapeAnsiFunction · 0.45
Compiler.test.jsFile · 0.45
quoteMetaFunction · 0.45
normalizeFunction · 0.45

Calls 2

replaceSyncMethod · 0.95
resolveMethod · 0.65

Tested by 4

escapeAnsiFunction · 0.36
cleanErrorFunction · 0.36
serializeFunction · 0.36
printFunction · 0.36