Closed SutuSebastian closed 3 months ago
Latest commit: 50c7cddfd94c4576c3681fe7069dbd28beef38fc
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
[!WARNING]
Rate Limit Exceeded
@SutuSebastian has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 7 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 70f804d6de100cb543d477814649ae9ebe5673d0 and 50c7cddfd94c4576c3681fe7069dbd28beef38fc.
The overarching change focuses on enhancing the build process and integration of flowbite-react
with Tailwind CSS across various frameworks. It shifts from tsc
to rollup
and esbuild
for better performance, updates documentation to streamline the installation and configuration process, and modifies file structures and dependency configurations for improved management. This comprehensive update aims to optimize the development workflow and ensure a smoother integration of Flowbite React with Tailwind CSS in diverse development environments.
Files | Summary |
---|---|
.changeset/hungry-toys-care.md |
Transitioned build process from tsc to rollup with esbuild , updated file extensions and output directories, refactored dependencies. |
apps/web/content/docs/.../introduction.mdx , .../astro.mdx , .../create-react-app.mdx , .../gatsby.mdx , .../laravel.mdx , .../next-js.mdx , .../parcel.mdx , .../redwood-js.mdx , .../remix.mdx , .../vite.mdx |
Updated installation instructions for Tailwind CSS and integration steps for Flowbite React in various guides. |
apps/web/tailwind.config.cjs , apps/web/turbo.json , package.json |
Modified tailwind.config.cjs , updated turbo.json dependencies, removed post-install script in package.json . |
packages/ui/... (Multiple files) |
Updated ESLint and .gitignore configurations, paths in package.json , introduced rollup.config.mjs , updated TypeScript settings, added new dependencies. |
π°β¨
In the realm of code, where the bits entwine,
A rabbit hopped through, making changes so fine.
With a flick and a hop, it transformed the night,
Rollup and esbuild, making builds light.
Flowbite and Tailwind, together they dance,
In a whirl of colors, they enhance.
ππ¦πΎ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
flowbite-react | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Apr 4, 2024 0:25am |
flowbite-react-storybook | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Apr 4, 2024 0:25am |
Summary
In order to bring more performance to the build process of
flowbite-react
package, we have to consider transpiling the files using other tools rather thantsc
, which is very slow.After evaluating various tools including
tsup
,tshy
, andbun build
, we choserollup
with theesbuild
plugin for transpiling due to its performance and flexibility. We continue to usetsc
solely for generating*.d.ts
declaration files.Changes
rollup
+esbuild
for transpiling filescjs
directory now have.cjs
extensionesm
directory now have.mjs
extension*.d.ts
) have been moved fromdist/esm
todist/types
lib
todist
content
path as well as theplugin
apps/web
to properly pipe and require the build output ofpackages/ui
in certain script steps such asbuild
anddev
introduction
andintegration guides
pages to use the new utility for tailwindcontent
andplugins
Breaking changes
tailwind.config.js
content
path:old:
"node_modules/flowbite-react/lib/esm/**/*.js"
new:
"node_modules/flowbite-react/dist/esm/**/*.mjs"
- (flowbite.content()
returns it)Before
After
Issues
1326, #1329, #1343
Summary by CodeRabbit
New Features
flowbite-react
for improved performance.Documentation
Refactor
packages/ui
to enhance build efficiency..gitignore
configurations to align with new directory structures.Chores
turbo.json
andpackage.json
configurations for optimized build and development processes.