Merge pull request #22342 from civicrm/5.45
[civicrm-core.git] / ang / crmUi.ang.php
1 <?php
2 // This file declares an Angular module which can be autoloaded
3 $isDebug = Civi::settings()->get('debug_enabled');
4
5 return [
6 'ext' => 'civicrm',
7 'js' => ['ang/crmUi.js'],
8 'partials' => ['ang/crmUi'],
9 'requires' => array_merge(
10 [
11 'crmResource',
12 'ui.utils',
13 ],
14 // Only require the +10kb if we're likely to need it.
15 $isDebug ? ['jsonFormatter'] : []
16 ),
17 ];