diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index 61af64e92f..0f90132768 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -529,7 +529,7 @@ export default function dom( constructor(options) { super(${options.dev && 'options'}); - ${should_add_css && b`@addCssToComponent(this, add_css, options);`} + ${should_add_css && b`@addCssToComponent(this, ${add_css}, options);`} @init(this, options, ${definition}, ${has_create_fragment ? 'create_fragment' : 'null'}, ${not_equal}, ${prop_indexes}, ${dirty}); ${options.dev && b`@dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "${name.name}", options, id: create_fragment.name });`}