need minification option!
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
I read no stopping minification in builds in 15, but why? I have a bug that is impossible to figure out (Cannot access 'd' before initialization) without disabling it. Please bring it back or tell me a workaround. Runs fine in dev mode, clean lint.
4 Replies
Dutch
where do you see that error
Nextjs will minify the code for production no matter what. You are supposed to find these errors in development and fix them. To get the actual reference to the code, you need a tool like Sentry which can do this using sourcemaps
Spectacled bearOP
Minify no matter what is what I’d like changed. It seems ridiculous to force any compiling option.
If I had the error in dev of course I’d fix it.
The problem is dev isn’t the final product. I’ve had plenty of errors prod only.
If I had the error in dev of course I’d fix it.
The problem is dev isn’t the final product. I’ve had plenty of errors prod only.
I don't think that's possible. You will need to use sentry or any similar setup to track the errors and pinpoint the line