mirror of
https://github.com/bitwarden/browser
synced 2026-02-05 03:03:26 +00:00
- Add 'rootDir: libs/LIBRARY_NAME/src' to all @nx/js:tsc executor build options - Update package.json main/types from 'dist/index.js' to 'index.js' for all libraries - Fixes systematic bug where build output had nested src/ structure but package.json pointed to non-existent dist/ paths - Affects all Tier 1-3 libraries: storage-core, guid, serialization, user-core, logging, client-type, messaging, messaging-internal, state, state-internal, core-test-utils, storage-test-utils, state-test-utils, assets, nx-plugin - Resolves 'Cannot find module' TypeScript errors for library imports - Implements Phase 2 systematic fix from rootDir configuration specification
Assets
Owned by: ui-foundation
This lib contains assets used by the Bitwarden clients. Unused assets are tree-shaken from client bundles. This means that all exports from this library must not have any side effects.
Usage
SVGs
SVGs intended to be used with the bit-icon component live in src/svgs. These SVGs are built with the icon-service for security reasons. These SVGs can be viewed in our Component Library Icon Story.
When adding a new SVG, follow the instructions in our Component Library: SVG Icon Docs
When importing an SVG in one of the clients:
import { ExampleSvg } from "@bitwarden/assets/svg";