How to upload source-map of your React project to Bugsnag

“scripts”: {   “build”: “react-scripts build”   .....
$ npm run build
$ npm install --save-dev bugsnag-sourcemaps
PACKAGE_VERSION=$(node -p -e "require('./package.json').version") && bugsnag-sourcemaps upload --api-key 9f7b27319c96ca36bf67dc762ce4862c --app-version $PACKAGE_VERSION --directory

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store