projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(NFC) Fix possible flacky tests by splitting the parts of the checksum up so that...
[civicrm-core.git]
/
ang
/
crmUi.ang.php
diff --git
a/ang/crmUi.ang.php
b/ang/crmUi.ang.php
index 72c6594aeb132905ba9dc4374149beec5be681e1..c3cddd3466f2cd55d9cea4243ec7d6c27b5075ef 100644
(file)
--- a/
ang/crmUi.ang.php
+++ b/
ang/crmUi.ang.php
@@
-1,14
+1,17
@@
<?php
// This file declares an Angular module which can be autoloaded
<?php
// This file declares an Angular module which can be autoloaded
-// in CiviCRM. See also:
-// http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules
+$isDebug = Civi::settings()->get('debug_enabled');
return [
'ext' => 'civicrm',
'js' => ['ang/crmUi.js'],
'partials' => ['ang/crmUi'],
return [
'ext' => 'civicrm',
'js' => ['ang/crmUi.js'],
'partials' => ['ang/crmUi'],
- 'requires' => [
- 'crmResource',
- 'ui.utils',
- ],
+ 'requires' => array_merge(
+ [
+ 'crmResource',
+ 'ui.utils',
+ ],
+ // Only require the +10kb if we're likely to need it.
+ $isDebug ? ['jsonFormatter'] : []
+ ),
];
];