This commit is contained in:
Sukhwinder Dhillon 2024-07-24 09:05:02 +02:00
parent 79971cb1a6
commit f985573750
2 changed files with 3 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class JavaScript
try {
$dependencies = $match[2] ? Json::decode($match[2]) : [];
foreach ($dependencies as &$dependencyName) {
if ($dependencyName === 'exports') {
if ($dependencyName === 'exports' || $dependencyName === 'Icinga') {
// exports is a special keyword and doesn't need optimization
continue;
}

View File

@ -91,6 +91,8 @@
return false;
}
define('Icinga', [], () => Icinga);
this.timezone = new Icinga.Timezone();
this.utils = new Icinga.Utils(this);
this.logger = new Icinga.Logger(this);