Skip to content

Commit a3d282b

Browse files
Version Packages (#1349)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bf1bdb0 commit a3d282b

File tree

3 files changed

+65
-64
lines changed

3 files changed

+65
-64
lines changed

.changeset/hungry-toys-care.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

packages/ui/CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,69 @@
11
# Changelog
22

3+
## 0.8.0
4+
5+
### Minor Changes
6+
7+
- [#1344](https://github.com/themesberg/flowbite-react/pull/1344) [`bf1bdb0`](https://github.com/themesberg/flowbite-react/commit/bf1bdb0e1bf303d830990b3bf7c5d1a46af3648f) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - ## Rework build process using `rollup` and `tsc`
8+
9+
### Summary
10+
11+
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 than `tsc`, which is very slow.
12+
13+
After evaluating various tools including `tsup`, `tshy`, and `bun build`, we chose `rollup` with the `esbuild` plugin for transpiling due to its performance and flexibility. We continue to use `tsc` solely for generating `*.d.ts` declaration files.
14+
15+
### Changes
16+
17+
- added `rollup` + `esbuild` for transpiling files
18+
- all files in the `cjs` directory now have `.cjs` extension
19+
- all files in the `esm` directory now have `.mjs` extension
20+
- declaration file types (`*.d.ts`) have been moved from `dist/esm` to `dist/types`
21+
- changed the build output dir from `lib` to `dist`
22+
- created a facade layer for easier management of the `content` path as well as the `plugin`
23+
- fixed turbo repo dependency tree configs in order for `apps/web` to properly pipe and require the build output of `packages/ui` in certain script steps such as `build` and `dev`
24+
25+
### Breaking changes
26+
27+
`tailwind.config.js` `content` path:
28+
29+
old: `"node_modules/flowbite-react/lib/esm/**/*.js"`
30+
31+
new: `"node_modules/flowbite-react/dist/esm/**/*.mjs"` - (`flowbite.content()` returns it)
32+
33+
Before
34+
35+
```js {5,9}
36+
/** @type {import('tailwindcss').Config} */
37+
module.exports = {
38+
content: [
39+
// ...
40+
"node_modules/flowbite-react/lib/esm/**/*.js",
41+
],
42+
plugins: [
43+
// ...
44+
require("flowbite/plugin"),
45+
],
46+
};
47+
```
48+
49+
After
50+
51+
```js {1,7,11}
52+
const flowbite = require("flowbite-react/tailwind");
53+
54+
/** @type {import('tailwindcss').Config} */
55+
module.exports = {
56+
content: [
57+
// ...
58+
flowbite.content(),
59+
],
60+
plugins: [
61+
// ...
62+
flowbite.plugin(),
63+
],
64+
};
65+
```
66+
367
## 0.7.8
468

569
### Patch Changes

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-react",
3-
"version": "0.7.8",
3+
"version": "0.8.0",
44
"description": "Official React components built for Flowbite and Tailwind CSS",
55
"keywords": [
66
"design-system",

0 commit comments

Comments
 (0)