code: function replace(regex, source, options) {
    var valueOrFn = getValueOrMatchFn(options.value)
    source.replace(regex, function () { return '' })
    return source.replace(regex, valueOrFn)
  }
docs: Execute a replace operation and return the modified source.
  
  @param {RegExp} regex
  @param {string} source
  @param {LoaderOptions} options
  @returns {string}