From 522faf8c83918ba5c9f46220f6f71978d217fb46 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Mon, 14 Mar 2022 00:18:37 +0800 Subject: [PATCH] chore: new line for non-existent url (#7308) --- packages/vite/src/node/plugins/assetImportMetaUrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/assetImportMetaUrl.ts b/packages/vite/src/node/plugins/assetImportMetaUrl.ts index 46e37a7988a00c..421c18182ae0a9 100644 --- a/packages/vite/src/node/plugins/assetImportMetaUrl.ts +++ b/packages/vite/src/node/plugins/assetImportMetaUrl.ts @@ -63,7 +63,7 @@ export function assetImportMetaUrlPlugin(config: ResolvedConfig): Plugin { // in which we can resort to the initial URL and let it resolve in runtime const builtUrl = await fileToUrl(file, config, this).catch(() => { config.logger.warnOnce( - `${exp} doesn't exist at build time, it will remain unchanged to be resolved at runtime` + `\n${exp} doesn't exist at build time, it will remain unchanged to be resolved at runtime` ) return url })