esbuild#BuildFailure TypeScript Examples
The following examples show how to use
esbuild#BuildFailure.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: esbuild.ts From magic-js with MIT License | 6 votes |
/**
* Returns a function that can be used to handle rebuild events from ESBuild.
*/
function onRebuildFactory(options: ESBuildOptions) {
return async (error: BuildFailure | null, result: BuildResult | null) => {
if (error) {
console.error(error.message);
} else {
await printOutputSizeInfo(options);
}
};
}