Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • 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.

      Parameters

      • file: string
      • seen: Set<string> = ...

      Returns string