·
125 commits
to main
since this release
Minor Changes
-
#1344
bf1bdb0Thanks @SutuSebastian! - Rework build process usingrollupandtscSummary
In order to bring more performance to the build process of
flowbite-reactpackage, 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 choserollupwith theesbuildplugin for transpiling due to its performance and flexibility. We continue to usetscsolely for generating*.d.tsdeclaration files.Changes
- added
rollup+esbuildfor transpiling files- all files in the
cjsdirectory now have.cjsextension - all files in the
esmdirectory now have.mjsextension - declaration file types (
*.d.ts) have been moved fromdist/esmtodist/types
- all files in the
- changed the build output dir from
libtodist - created a facade layer for easier management of the
contentpath as well as theplugin - fixed turbo repo dependency tree configs in order for
apps/webto properly pipe and require the build output ofpackages/uiin certain script steps such asbuildanddev
Breaking changes
tailwind.config.jscontentpath:old:
"node_modules/flowbite-react/lib/esm/**/*.js"new:
"node_modules/flowbite-react/dist/esm/**/*.mjs"- (flowbite.content()returns it)Before
/** @type {import('tailwindcss').Config} */ module.exports = { content: [ // ... "node_modules/flowbite-react/lib/esm/**/*.js", ], plugins: [ // ... require("flowbite/plugin"), ], };
After
const flowbite = require("flowbite-react/tailwind"); /** @type {import('tailwindcss').Config} */ module.exports = { content: [ // ... flowbite.content(), ], plugins: [ // ... flowbite.plugin(), ], };
Addresses Issues
- added