You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/kit/src/core/build/index.js
+8-2
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,10 @@ async function build_client({
174
174
plugins: [
175
175
svelte({
176
176
extensions: config.extensions,
177
-
emitCss: !config.kit.amp
177
+
emitCss: !config.kit.amp,
178
+
compilerOptions: {
179
+
hydratable: !!config.kit.hydrate
180
+
}
178
181
})
179
182
]
180
183
});
@@ -463,7 +466,10 @@ async function build_server(
463
466
},
464
467
plugins: [
465
468
svelte({
466
-
extensions: config.extensions
469
+
extensions: config.extensions,
470
+
compilerOptions: {
471
+
hydratable: !!config.kit.hydrate
472
+
}
467
473
})
468
474
],
469
475
// this API is marked as @alpha https://github.com./vitejs/vite/blob/27785f7fcc5b45987b5f0bf308137ddbdd9f79ea/packages/vite/src/node/config.ts#L129
0 commit comments