react-rollup

0.0.16 • Public • Published

React-Rollup

The React build pipeline ported to Rollup

click for Video presentation, 10 min

Used by lib-create-react-app

© 2018-present Harald Rudell harald.rudell@gmail.com (http://www.haraldrudell.com)

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

Example Project

link: Hire Harald Rudell

link: Sponsor Harald Rudell

Lib Create React App creates shareable libraries from projects bootstrapped with Create React App.

© 2018-present Harald Rudell harald.rudell@gmail.com (http://www.haraldrudell.com)

Package Sidebar

Install

npm i react-rollup

Weekly Downloads

7

Version

0.0.16

License

ISC

Unpacked Size

18.1 kB

Total Files

7

Last publish

Collaborators

  • haraldrudell