Inline @import 'relative/path'; directives recursively into a single CSS
string. Visited files are tracked via the optional seen set so cycles
resolve to the empty string rather than infinite recursion.
Supports BOTH the bare-string form (@import 'foo.css';) and the
url(...) form (@import url('foo.css'); / @import url(foo.css);).
styles.md C4: the prior regex only matched bare-string imports, so any
future @import url(...) would silently skip — breaking the embed-safety
contract under test in library-css-scope.test.ts.
Quietly returns '' for missing files — callers can length-check.
Inline
@import 'relative/path';directives recursively into a single CSS string. Visited files are tracked via the optionalseenset so cycles resolve to the empty string rather than infinite recursion.Supports BOTH the bare-string form (
@import 'foo.css';) and theurl(...)form (@import url('foo.css');/@import url(foo.css);). styles.md C4: the prior regex only matched bare-string imports, so any future@import url(...)would silently skip — breaking the embed-safety contract under test in library-css-scope.test.ts.Quietly returns '' for missing files — callers can length-check.