replaceText(replacements) {
    return {
      name: 'text-replace',
      async onLoad(code, args) {
        for (const [k, v] of Object.entries(replacements)) {
          let replaceWith;
          if (v instanceof Function) {
            replaceWith = v(args.path);
          } else {
            replaceWith = v;
          }

          code = code.replaceAll(k, replaceWith);
        }

        return {code};
      },
    };
  }
@param {Record<string, string | ((id: string) => string)>} replacements
@return {PartialLoader}