When you use a template in your tagged template string css, the browserify transform breaks.
var aColor = '#fff'
var css = sf`.some-class {
background-color: ${aColor};
}`
CssSyntaxError: /Users/bret/repos/hyperamp/renderer/index.js:3:2: Unknown word while parsing file: /Users/bret/repos/hyperamp/renderer/index.js
1 | .some-class {
2 | background-color: ,;
> 3 | }[object Object]
| ^
I started down the road of correcting the in-node implementation, but we are going to have to statically analyze the template string during the transform somehow. I'm not too familiar with this kind of thing. Any ideas?
bcomnes@112d7b7
This is related to #54 but specific to the way template variables are busted right now vs how :host gets used.
When you use a template in your tagged template string css, the browserify transform breaks.
I started down the road of correcting the in-node implementation, but we are going to have to statically analyze the template string during the transform somehow. I'm not too familiar with this kind of thing. Any ideas?
bcomnes@112d7b7
This is related to #54 but specific to the way template variables are busted right now vs how
:hostgets used.