using my boilerplate yuh

This commit is contained in:
Sriram Hariharan
2023-02-22 22:51:38 -06:00
parent 21d7056aae
commit bce2717088
91 changed files with 32400 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import printBuildError from 'react-dev-utils/printBuildError';
import { error } from './chalk';
/**
* Print Errors that we got back from webpack
* @param e the error provided by webpacxk
*/
export default function printError(e: Error) {
console.log('printBuildError -> e', e);
if (process.env.TSC_COMPILE_ON_ERROR === 'true') {
printBuildError(e);
} else {
// console.log(error('Failed to compile.\n'));
printBuildError(e);
process.exit(1);
}
}