Running build:production error

Thank you for your response, I solved my problem from this ticket Debugging `ModuleNotFoundError` encountered while running `yarn build:production`. My question now is, does putting this code

{
//…
“enabled”: {
“sourceMaps”: true
}
}

ALWAYS solve the problem I just encountered?