Since v0.6.0, it seems having comments inside interpolation strings causes issues.
Repro test case:
const parse = require('../parse');
test('it should not fail with comments inside interpolation', () => {
expect(() => {
parse('let Component = styled.div`color: ${textColor /* very good color */}`;')
}).not.toThrow();
});
Hi!
Since v0.6.0, it seems having comments inside interpolation strings causes issues.
Repro test case:
This fails on v0.6.0, but doesn't fail on v0.5.0.
Running a quick
git bisect
, I find 6c9cdaab23bccd980610c852131edffe6db22fae as the culprit commit.