react95-io / React95

🌈🕹 Windows 95 style UI component library for React
https://react95.io
MIT License
6.65k stars 185 forks source link

build: enable preserveModules to main bundle so consumers can use tree shaking #346

Open WesSouza opened 2 years ago

WesSouza commented 2 years ago

Rollup is not configure to preserveModules for the src/index.ts entry, resulting in one ESM and one JS file for the entire library.

We'd like to allow consumers to import individual components and be able to tree shake the files that are not used.

import { Button } from 'react95';

Should only include files necessary for the Button to render.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 4.0.0-beta.13 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 4.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: