UNPKG

@react-gnome/core

Version:

## Getting Started

23 lines (22 loc) 531 B
// src/esbuild-plugins/watch-logger/watch-logger-plugin.ts import { html, Output } from "termx-markup"; var watchLoggerPlugin = () => { let isFirstBuild = true; return { name: "react-gtk-watch-logger-esbuild-plugin", setup(build) { build.onStart(() => { if (!isFirstBuild) { Output.print( html`<span color="yellow">Changes detected, rebuilding...</span>` ); } else { isFirstBuild = false; } }); } }; }; export { watchLoggerPlugin };