microsoft / microsoft/fluentui

[Feature]: Icon map as global object or UMD

Open
#30,785 6 comments 0 reactions 1 assignee View on GitHub

@tomi-msft is already working on this.

Since Jun 24, 2024.

Fluent UI react (v8) Issue Pinged Needs: Attention Resolution: Soft Close Type: Feature
Dominant language
TypeScript
Stars
20.3k
Forks
2.9k
Avg merge
2d 9h
Merged PRs (30d)
46

Description

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

The icon map is currently available as: amd module, commonjs module, es module and typescript. This makes it hard to integrate into legacy web applications that need updated look and feel but do not use a module bundler.

One idea is to bundle the icon map as a global object, i.e. window.fabric.fileTypesIconMap. Another common pattern in the JavaScript community is the Universal Module Definition (UMD) that exports to either a amd, cjs or global object, depending on what module api is available in the environment.

Have you discussed this feature with our team

No response

Additional context

No response

Validations
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Priority

None

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.