Created
February 16, 2019 15:04
-
-
Save jonoirwinrsa/c0677c513f8109772598838435ad8502 to your computer and use it in GitHub Desktop.
Upload Create React App sourcemaps to Bugsnag - Step 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Find, upload and delete Source Maps | |
*/ | |
function processSourceMaps() { | |
findSourceMaps((error, files) => | |
Promise.all(files.map(uploadSourceMap)) | |
.then(() => { | |
deleteFiles(files); | |
notifyRelease(); // Bonus Step | |
}) | |
.catch(e => { | |
console.log(e); | |
}) | |
); | |
} | |
processSourceMaps(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment