lux-framework
Version:
Build scalable, Node.js-powered REST APIs with almost no code.
21 lines (18 loc) • 329 B
JavaScript
// @flow
/**
* @private
*/
type CompilerWarning = {
code: string;
message: string;
};
/**
* @private
*/
export default function handleWarning(warning: CompilerWarning): void {
if (warning.code === 'UNUSED_EXTERNAL_IMPORT') {
return;
}
// eslint-disable-next-line no-console
console.warn(warning.message);
}