You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thanks for your work on this plugin, it's great to be able to have syntax highlighting and Intellisense for template strings :) I've noticed, though, that ts-styled-plugin gets rather upset (Do not use empty rulesets: ts-styled-plugin(9999)) if there's a style attribute that is populated by a Lit styleMap Directive, i.e.,
<div style=${styleMap(styles}}></div>
While I appreciate the primary issue is upstream in ts-styled-plugin, there is no way when using this plugin to configure it such that it ignores – say – empty style rules, which I would be able to set were I configuring the plugin directly. I think it comes down to https://github.com/microsoft/typescript-lit-html-plugin/blob/main/src/index.ts#L50, which I think is passing through an empty config to ts-styled-plugin.
I was wondering, would it be possible to either take extra config for ts-styled-plugin, or use any relevant global configs rather than setting it to {}?
Thanks!
The text was updated successfully, but these errors were encountered:
Firstly, thanks for your work on this plugin, it's great to be able to have syntax highlighting and Intellisense for template strings :) I've noticed, though, that
ts-styled-plugin
gets rather upset (Do not use empty rulesets: ts-styled-plugin(9999)
) if there's a style attribute that is populated by a LitstyleMap
Directive, i.e.,While I appreciate the primary issue is upstream in
ts-styled-plugin
, there is no way when using this plugin to configure it such that it ignores – say – empty style rules, which I would be able to set were I configuring the plugin directly. I think it comes down to https://github.com/microsoft/typescript-lit-html-plugin/blob/main/src/index.ts#L50, which I think is passing through an empty config tots-styled-plugin
.I was wondering, would it be possible to either take extra config for
ts-styled-plugin
, or use any relevant global configs rather than setting it to{}
?Thanks!
The text was updated successfully, but these errors were encountered: