Rollup: How to bundle dependencies separately?

Viewed 138

I'm working on an application that has build dependencies on react and react-dom. Is it possible to use rollup to bundle these dependencies separately?

Outputs:

  • react.js <-- react library
  • react-dom.js <-- react dom library that imports react.js above
  • app.js <-- my application code
0 Answers
Related