refact($compile): only add scope info if debugInfo is enabled