Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not run the
babel
helper in Development Mode.
This PR adds a check to the `babel` helper to see if we are currently in the Development Mode. If so, the enclosed source code is not run through Babel, it is returned verbatim. This is a preview optimization, since the Babel-ification is a relatively slow operation. It's not necessary for preview either, assuming devs are not previewing their changes in IE11. There will need to be a corresponding Jambo PR for this as well. Jambo still has a `babel` helper of its own for legacy reasons. J=SLAP-1312 TEST=manual Ensured that when in Development mode, the helper was a simple pass-through. In Production mode, the enclosed code was Babel-ified.
- Loading branch information