|
|
|
@ -2160,15 +2160,10 @@ export function server_component(analysis, options) {
|
|
|
|
const body = [...state.hoisted, ...module.body];
|
|
|
|
const body = [...state.hoisted, ...module.body];
|
|
|
|
|
|
|
|
|
|
|
|
if (analysis.css.ast !== null && options.css === 'injected' && !options.customElement) {
|
|
|
|
if (analysis.css.ast !== null && options.css === 'injected' && !options.customElement) {
|
|
|
|
body.push(
|
|
|
|
const hash = b.literal(analysis.css.hash);
|
|
|
|
b.const(
|
|
|
|
const code = b.literal(render_stylesheet(analysis.source, analysis, options).code);
|
|
|
|
'$$css',
|
|
|
|
|
|
|
|
b.object([
|
|
|
|
body.push(b.const('$$css', b.object([b.init('hash', hash), b.init('code', code)])));
|
|
|
|
b.init('hash', b.literal(analysis.css.hash)),
|
|
|
|
|
|
|
|
b.init('code', b.literal(render_stylesheet(analysis.source, analysis, options).code))
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
component_block.body.unshift(b.stmt(b.call('$$payload.css.add', b.id('$$css'))));
|
|
|
|
component_block.body.unshift(b.stmt(b.call('$$payload.css.add', b.id('$$css'))));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|