diff --git a/cli/run/batchWarnings.ts b/cli/run/batchWarnings.ts index 66f8ff632..5dc9b7e19 100644 --- a/cli/run/batchWarnings.ts +++ b/cli/run/batchWarnings.ts @@ -262,7 +262,7 @@ const deferredHandlers: Record void> = { function defaultBody(log: RollupLog): void { if (log.url) { - info(getRollupUrl(log.url)); + info(log.url); } const loc = formatLocation(log); diff --git a/test/cli/samples/logs/_config.js b/test/cli/samples/logs/_config.js index 65f1b136a..45a3b6b45 100644 --- a/test/cli/samples/logs/_config.js +++ b/test/cli/samples/logs/_config.js @@ -20,17 +20,17 @@ module.exports = defineTest({ ${BOLD}main.js${REGULAR} → ${BOLD}stdout${REGULAR}...${NOCOLOR} ${BOLD}${CYAN}[plugin test] simple-info${NOCOLOR}${REGULAR} ${BOLD}${CYAN}[plugin test] complex-info${NOCOLOR}${REGULAR} -${GRAY}https://rollupjs.org/https://my-url.net${NOCOLOR} +${GRAY}https://my-url.net${NOCOLOR} ${BOLD}${BLUE}[plugin test] simple-debug${NOCOLOR}${REGULAR} ${BOLD}${BLUE}[plugin test] complex-debug${NOCOLOR}${REGULAR} -${GRAY}https://rollupjs.org/https://my-url.net${NOCOLOR} +${GRAY}https://my-url.net${NOCOLOR} ${BOLD}${CYAN}[plugin test] main.js (1:12): transform-info${NOCOLOR}${REGULAR} -${GRAY}https://rollupjs.org/https://my-url.net${NOCOLOR} +${GRAY}https://my-url.net${NOCOLOR} ${BOLD}CWD/main.js:1:12${REGULAR} ${GRAY}1: assert.ok( true ); ^${NOCOLOR} ${BOLD}${BLUE}[plugin test] main.js (1:13): transform-debug${NOCOLOR}${REGULAR} -${GRAY}https://rollupjs.org/https://my-url.net${NOCOLOR} +${GRAY}https://my-url.net${NOCOLOR} ${BOLD}CWD/main.js:1:13${REGULAR} ${GRAY}1: assert.ok( true ); ^${NOCOLOR}