This project is generated with
npx create-react-library
with default options and then adding a dependency to recharts
This project was created to illustrate this (fixed) issue rollup/rollup#2729 in rollupjs - Compilation never ends. Try yarn build
npm install --save with-recharts
import * as React from 'react'
import MyComponent from 'with-recharts'
class Example extends React.Component {
render () {
return (
<MyComponent />
)
}
}