parent is the const a node, but path.scope.getBinding(id.node.name) returns the function a() node. function a() node has no references so CSS extraction was skipped.
This code is simplified from an output of Solid.js babel plugin, so it can't change.
Expand
```js
import { template as _$template } from "solid-js/web";
import { className as _$className } from "solid-js/web";
import { getNextMarker as _$getNextMarker } from "solid-js/web";
import { createComponent as _$createComponent } from "solid-js/web";
import { getNextElement as _$getNextElement } from "solid-js/web";
import { insert as _$insert } from "solid-js/web";
import { effect as _$effect } from "solid-js/web";
import { setAttribute as _$setAttribute } from "solid-js/web";
import { $$component as _$$component } from "solid-refresh";
import { $$refresh as _$$refresh } from "solid-refresh";
import { $$registry as _$$registry } from "solid-refresh";
const _REGISTRY = _$$registry();
const _tmpl$ = /*#__PURE__*/_$template(`
Environment
Description
a.js:
b.js:
css
template string ina()
will be replaced with names, but the CSS rules won't be generated.https://github.com/callstack/linaria/blob/79557248f51f21663729add3a0564a830d8d4c87/packages/babel/src/utils/getTagProcessor.ts#L394-L421
parent
is theconst a
node, butpath.scope.getBinding(id.node.name)
returns thefunction a()
node.function a()
node has no references so CSS extraction was skipped.This code is simplified from an output of Solid.js babel plugin, so it can't change.
Reproducible Demo
https://codesandbox.io/p/sandbox/interesting-brook-vn8dgp