My react folder structure is as below
I've not used the create-react-app version. I tried using GENERATE_SOURCEMAP=false
. But It didn't work.
Where can I find the .map files. How can I delete those files?
I cannot find a build folder. I've tried using the below script But It cannot work in removing source maps
"scripts": { "start": "react-scripts start", "build": "GENERATE_SOURCEMAP=false && npm run build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" },
In the inspection tool, click on the gear icon on the very top right of the window to open the settings page as shown below. In the preference tab, under the Sources subheader, make sure that Enable JavaScript source maps is enabled.
Sentry supports demangling of transpiled, minified, and bundled JavaScript using source maps, which are JSON files that contain information about how to map your deployed code back to its original source(s).
To stop this from running, in the command prompt, type CTRL-C. You will get the prompt to Terminate batch job: Type Y and the app will stop running: You can now run npm start again if you want to relaunch the app.
just remove &&
"scripts": { "start": "react-scripts start", "build": "GENERATE_SOURCEMAP=false react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With