Skip to content

🗣[Discussion] Distribute individual bundles for each component #456

@mxstbr

Description

@mxstbr

It would be awesome if I could import only a single component at a time by going a bit deeper into the filesystem, for example something like:

import Flex from '@primer/components/dist/Flex';
// or maybe even
import Flex from '@primer/components/Flex';

That mainly requires creating a JS file per component that has a module.exports instead of a single index.esm.js file. That would allow my app to only pull in the code that I am really using, instead of all components, and also solve #455 and #454.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions