@sveltejs/kit 2.15.0 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -228,19 +228,18 @@ export async function render_response({
|
|
|
228
228
|
return `${assets}/${path}`;
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (inline_styles.size > 0) {
|
|
236
|
-
const content = Array.from(inline_styles.values()).join('\n');
|
|
231
|
+
// inline styles can come from `bundleStrategy: 'inline'` or `inlineStyleThreshold`
|
|
232
|
+
const style = client.inline
|
|
233
|
+
? client.inline?.style
|
|
234
|
+
: Array.from(inline_styles.values()).join('\n');
|
|
237
235
|
|
|
236
|
+
if (style) {
|
|
238
237
|
const attributes = __SVELTEKIT_DEV__ ? [' data-sveltekit'] : [];
|
|
239
238
|
if (csp.style_needs_nonce) attributes.push(` nonce="${csp.nonce}"`);
|
|
240
239
|
|
|
241
|
-
csp.add_style(
|
|
240
|
+
csp.add_style(style);
|
|
242
241
|
|
|
243
|
-
head += `\n\t<style${attributes.join('')}>${
|
|
242
|
+
head += `\n\t<style${attributes.join('')}>${style}</style>`;
|
|
244
243
|
}
|
|
245
244
|
|
|
246
245
|
for (const dep of stylesheets) {
|
package/src/utils/routing.js
CHANGED
package/src/version.js
CHANGED