fix(core): do not coerce webpack warning to string (#6378)

This commit is contained in:
Joshua Chen 2022-01-16 19:47:22 +08:00 committed by GitHub
parent 52db7320a6
commit ad16f4fdd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ export function compile(config: Configuration[]): Promise<void> {
}
if (errorsWarnings && stats?.hasWarnings()) {
errorsWarnings.warnings?.forEach((warning) => {
logger.warn(`${warning}`);
logger.warn(warning);
});
}
// Webpack 5 requires calling close() so that persistent caching works