diff --git a/framework/core/src/Frontend/Asset/ExtensionAssets.php b/framework/core/src/Frontend/Asset/ExtensionAssets.php index 903dc008c..64da87363 100644 --- a/framework/core/src/Frontend/Asset/ExtensionAssets.php +++ b/framework/core/src/Frontend/Asset/ExtensionAssets.php @@ -58,6 +58,7 @@ class ExtensionAssets implements AssetInterface $sources->addString(function () { $name = $this->extension->getId(); + return "flarum.extensions['$name']=module.exports"; }); }