A boilerplate/template for creating modern React libraries using Rollup as the bundler, version 0.1.10. It supports CommonJS and ES module formats, TypeScript, CSS/SASS, Storybook, Jest with React Testing Library, and automatically externalizes peer dependencies. Key differentiators include built-in support for complex peer dependencies like Ant Design, and a focus on learning Rollup configuration. The package is not actively maintained (last update April 2023) and serves primarily as a starter kit rather than a production-ready library.
npm install chatbot-react-rollupNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Cloning the template, installing peer dependencies, running Storybook for development, and building the library for production.
If updating rollup plugins, check compatibility. Use lockfile to stay on tested versions.
Users of the library must import antd CSS globally in their app: import 'antd/dist/reset.css' (v5).
Update the rollup.config.js to externalize your chosen dependencies and adjust any CSS imports.
Consider using up-to-date alternatives like tsup, tsdx, or microbundle.
Use Node.js 16 or 18 for best compatibility. Check rollup docs for Node version support.
Run `npm install antd` in the host app. The library expects antd to be available externally.
Add react and react-dom as dependencies: `npm install react react-dom`.
Use `import` syntax or configure bundler (e.g., webpack) to handle ES modules. If using Node.js, add 'type': 'module' to package.json.
Ensure `npm install` is run in the library project before building.