TypeScript icon, indicating that this package has built-in type declarations

3.4.1-amplitude.1 • Public • Published


This package includes scripts and configuration used by Create React App.
Please refer to its documentation:

This is a fork – set up and update instructions

We chose to use react-scripts for lightning's build system instead of custom webpack, babel, and jest configs. We used to have separate configs for each of these, but it was very difficult to keep up-to-date. react-scripts allows us to more-easily update our build system with the "latest and greatest" tech, as well as serve as a forcing function for us to follow common conventions with the general React community.

Unfortunately, we cannot use vanilla react-scripts. We considered some other alternatives, including react-app-rewired and ejecting, but both of those come at some negative traceoffs. react-app-rewired relies on hacking node's module loading mechanism to change behavior of react-scripts, which is brittle, and also limiting in that it only enables some specific overrides. Ejecting is not great either, because it means we'll diverge from create-react-app and we'll end up in the same situation in only a few months later.

So instead, we have decided to fork react-scripts. This comes at the tradeoff that we'll need to do some extra work to handle merge conflicts whenever we update from upstream. It's even more tricky because we'd like to keep this project in the same monorepo as our other JavaScript projects. Even considering these issues, we still feel this solution offers the best solution.

See the accompanying MODIFICATIONS.md for a list of things we changed from the original react-scripts.




Package Sidebar


npm i @amplitude/react-scripts

Weekly Downloads






Unpacked Size

126 kB

Total Files


Last publish


  • kwallachamp
  • alec.amplitude
  • amplicynthia
  • mae.capozzi
  • sdk.dev
  • dnshi
  • kevinpagtakhan
  • justin-fiedler
  • qingzhuo
  • rctbusk
  • jackmccloy
  • amp_haoliu
  • myztiq
  • curtisbliu
  • jtran
  • kelvin-lu
  • nutwani
  • hao.yu
  • kelson.warner
  • ajhorst_amp
  • brian.giori