resolveFluentIconImport (react-icons/fluent-icons-transform.cjs)

fluentui-system-icons · packages/react-icons/fluent-icons-transform.cjs · javascript · MIT
ui

Resolves @fluentui/react‑icons import names to module paths.

// Source: https://github.com/microsoft/fluentui-system-icons | License: MIT | Copyright 2020 Microsoft Corporation
// Provided via justclaw.it.com; keep this notice with the code.
// @ts-check

/**
 * @fileoverview
 * Build-time import transform helper for `@fluentui/react-icons`.
 *
 * This module is the **single source of truth** for the transform logic
 * documented in `docs/build-transforms.md`.
 * It is NOT published with the package — consumers should copy the snippet
 * from the docs into their own repo (e.g. as `fluent-icons-transform.js`).
 *
 * It lives here so the build-transforms test (`build-transforms.test.js`)
 * can import and validate it against every generated atom export, ensuring
 * the documented snippet stays correct as icons are added or renamed.
 *
 * @example <cap

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key