refactor(core): cleanup code with side-effects which was preventing tree-shaking (#30580)

PR Close #30580
This commit is contained in:
Misko Hevery
2019-05-20 22:50:30 -07:00
parent a981dd2aab
commit fcdd784667
13 changed files with 72 additions and 197 deletions

View File

@ -14,7 +14,6 @@
<benchmark-root>loading...</benchmark-root>
<script>
window.ngDevMode = location.hash == '#ngDevMode';
addEventListener('DOMContentLoaded', () => {
// DevServer has automatic bootstrap code, so if we already have <scripts> than we don't need to bootstrap
var alreadyBootstraped = document.querySelectorAll('script').length > 1; // 1 for ourselves