Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab587bf

Browse files
committed
fix?
1 parent0300fbc commitab587bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎packages/svelte/src/internal/client/render.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ export function hydrate(component, options) {
137137
return/**@type {Exports} */(instance);
138138
}catch(error){
139139
// re-throw Svelte errors - they are certainly not related to hydration
140-
if(errorinstanceofError&&error.message.includes('https://svelte.dev/e/')){
140+
if(
141+
errorinstanceofError&&
142+
error.message.split('\n').some((line)=>line.startsWith('https://svelte.dev/e/'))
143+
){
141144
throwerror;
142145
}
143146
if(error!==HYDRATION_ERROR){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp