Skip to content

Commit

Permalink
try to fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jan 18, 2022
1 parent eb7b705 commit 8ec9f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/page/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export async function render_response({
.map((dep) => `\n\t<link${styles.has(dep) ? ' disabled' : ''} rel="stylesheet" href="${options.prefix + dep}">`)
.join('');

if (options.router || page_config.hydrate) {
if (page_config.hydrate) {
head += Array.from(js)
.map((dep) => `\n\t<link rel="modulepreload" href="${options.prefix + dep}">`)
.join('');
Expand Down

0 comments on commit 8ec9f66

Please sign in to comment.