|
|
|
@ -333,15 +333,10 @@ export function client_component(source, analysis, options) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (analysis.css.ast !== null && options.css === 'injected') {
|
|
|
|
if (analysis.css.ast !== null && options.css === 'injected') {
|
|
|
|
state.hoisted.push(
|
|
|
|
const hash = b.literal(analysis.css.hash);
|
|
|
|
b.const(
|
|
|
|
const code = b.literal(render_stylesheet(analysis.source, analysis, options).code);
|
|
|
|
'$$css',
|
|
|
|
|
|
|
|
b.object([
|
|
|
|
state.hoisted.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(
|
|
|
|
component_block.body.unshift(
|
|
|
|
b.stmt(b.call('$.append_styles', b.id('$$anchor'), b.id('$$css')))
|
|
|
|
b.stmt(b.call('$.append_styles', b.id('$$anchor'), b.id('$$css')))
|
|
|
|
|