scripts/build/esbuild-plugins/throw-warnings.mjs/esbuildPluginThrowWarnings
export default function esbuildPluginThrowWarnings() {
  return {
    name: "throw-warnings",
    setup(build) {
      build.onEnd((result) => {
        if (result.errors.length > 0) {
          return;
        }

        for (const warning of result.warnings) {
          if (ignoredWarnings.has(warning.text)) {
            continue;
          }

          console.log(warning);
          throw new Error(warning.text);
        }
      });
    },
  };
}