Hi, I created babel macro based on yours. And I got this issue. Both of our projects share this issues. If I will find solution I will report back. Maybe you know what is the deal here.
if (referencePath.parentPath.type === "CallExpression") {
requirelqip({ referencePath, state, babel });
} else {
throw new Error(
`This is not supported: \`${referencePath
.findParent(babel.types.isExpression)
.getSource()}\`. Please see the lqip.macro documentation`,
);
}
Without --coverage - referencePath.parentPath.type === "CallExpression"
With --coverage - referencePath.parentPath.type === "SequenceExpression"
Reproducible demo https://github.com/stereobooster/babel-macro-issue
Hi, I created babel macro based on yours. And I got this issue. Both of our projects share this issues. If I will find solution I will report back. Maybe you know what is the deal here.
Without
--coverage-referencePath.parentPath.type === "CallExpression"With
--coverage-referencePath.parentPath.type === "SequenceExpression"Reproducible demo https://github.com/stereobooster/babel-macro-issue