Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected onBundleWarning(warning: rollup.RollupWarning): void {
if (warning.code === "CIRCULAR_DEPENDENCY" || warning.code === "MISSING_NODE_BUILTINS") {
return; // suppress superfluous warnings
}
const output = Unicode.stringOutput(OutputSettings.styled());
if (warning.importer) {
output.write(warning.importer);
output.write(" ");
}
OutputStyle.blue(output);
output.write("warning:");
OutputStyle.reset(output);
if (warning.message) {
output.write(" ");
output.write(warning.message);
}
console.log(output.bind());
}
protected onBundleWarning(warning: rollup.RollupWarning): void {
if (warning.code === "CIRCULAR_DEPENDENCY" || warning.code === "MISSING_NODE_BUILTINS") {
return; // suppress superfluous warnings
}
const output = Unicode.stringOutput(OutputSettings.styled());
if (warning.importer) {
output.write(warning.importer);
output.write(" ");
}
OutputStyle.blue(output);
output.write("warning:");
OutputStyle.reset(output);
if (warning.message) {
output.write(" ");
output.write(warning.message);
}
console.log(output.bind());
}