When debugging production code in Slater, console output such as console.log statements or the use of debugger do not appear in your code. This occurs because Slater minifies your production JavaScript files by default. Minification removes whitespace and may also strip out debugging statements, making it difficult to trace issues using the browser console.
console.log and debugger statements are removed, making them invisible during runtime in production environments.To ensure that debugging statements remain available in your production build, minification can be turned off:
Minify production files checkbox.
Disabling minification will allow console.log and debugger statements to function as expected, making it easier to debug issues in production.
Slater uses Terser to handle file minification.
Please refer to your Slater documentation for the latest updates on project settings and build configuration.