-
Notifications
You must be signed in to change notification settings - Fork 20
Description
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!