From 07af5121ca0e701c527255ea1280096ee5a2c8a3 Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Thu, 6 Apr 2023 17:56:28 +0200 Subject: [PATCH] inline styles for custom elements mode --- src/compiler/compile/render_dom/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index 590b0fe65c..b4b96ce42e 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -49,7 +49,7 @@ export default function dom( const should_add_css = ( !!styles && - options.css === 'injected' + (options.customElement || options.css === 'injected') ); if (should_add_css) {