React-Rollup
The React build pipeline ported to Rollup
click for Video presentation, 10 min
Used by lib-create-react-app
harald.rudell@gmail.com (http://www.haraldrudell.com)
© 2018-present Harald Rudell
Usage
This project mainly supports lib-create-react-app
It does provide a rollup preset for React that allows for transpiling a React app with css into distributable files
yarn add --dev react-rollup
In rollup.config.js:
import rollupPresetReact from 'react-rollup'
…
export default {input, output, external, plugins: rollupPresetReact(options)}
options:
- jail: for rollup-plugin-resolve
- assetsPath: directory to where assets like fonts are copied
Components
- react-rollup the Create React App build pipeline ported to Rollup
- lib-create-react-app that adapts, builds and publishes a React project to npm
- es2049package a configuration-free bundler for CommonJS and ECMAScript modules
Example Project
- demo-context-store a single-truth store in 94% less code lines
Hire Harald Rudell
link:Sponsor Harald Rudell
link:
Lib Create React App creates shareable libraries from projects bootstrapped with Create React App.