Skip to content

Commit

Permalink
fix: avoid duplicate rollupjs.org prefix (#5809)
Browse files Browse the repository at this point in the history
* fix: avoid duplicate rollupjs.org prefix

* Adapt test

---------

Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
  • Loading branch information
GauBen and lukastaegert authored Jan 24, 2025
1 parent 56ba60f commit 41d01c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/run/batchWarnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const deferredHandlers: Record<string, (warnings: RollupLog[]) => void> = {

function defaultBody(log: RollupLog): void {
if (log.url) {
info(getRollupUrl(log.url));
info(log.url);
}

const loc = formatLocation(log);
Expand Down
8 changes: 4 additions & 4 deletions test/cli/samples/logs/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 41d01c2

Please sign in to comment.