Skip to content

Commit bdb1e05

Browse files
committed
chore: adjust tests for Svelte 5
Also bump Svelte to version 4 inside this project
1 parent d42a605 commit bdb1e05

File tree

4 files changed

+454
-33
lines changed

4 files changed

+454
-33
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ module.exports = function(source, map) {
172172
}).catch(err => {
173173
// wrap error to provide correct
174174
// context when logging to console
175-
callback(new Error(`${err.name}: ${err.toString()}`));
175+
let err_str = err.toString();
176+
if (getMajor() < 5 || !err_str.startsWith('CompileError:')) {
177+
err_str = `${err.name}: ${err_str}`
178+
}
179+
callback(new Error(err_str));
176180
});
177181
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy