Skip to content

Instantly share code, notes, and snippets.

@jonoirwinrsa
Last active February 16, 2019 15:21
Show Gist options
  • Save jonoirwinrsa/fff6f3029948d907bd903f46e99f2bca to your computer and use it in GitHub Desktop.
Save jonoirwinrsa/fff6f3029948d907bd903f46e99f2bca to your computer and use it in GitHub Desktop.
Upload Create React App sourcemaps to Bugsnag - Step 3
const fs = require('fs');
/**
* Delete the .map files
* We do this to protect our source
* @param files - array of source map files
*/
function deleteFiles(files) {
files.forEach(file => {
const path = `${__dirname}/${file}`;
fs.unlinkSync(path);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment