google / google/closure-compiler
replaceMessages occurs during the check phase
Open
internal cleanup
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
replaceMessages (i18n) strings occur during the check phase. It it is costly to resolve message ids, we should consider have a "check mode" that runs if optimizations aren't going to run so that AST doesn't change. So the rewriting occurs during the optimization phase.
The currently occurs before "processDefines" but I don't think that is a requirement.
Contributor guide
Assessment
This issue has not been assessed yet.