Add semicolons in flarum.extension assignments

Without these, content generated by webpack 5 breaks
This commit is contained in:
Alexander Skvortsov 2021-03-24 00:54:08 -04:00
parent 2cd1c2964a
commit 7d80b88d5c

View File

@ -97,11 +97,11 @@ class Frontend implements ExtenderInterface
if ($this->js) {
$assets->js(function (SourceCollector $sources) use ($moduleName) {
$sources->addString(function () {
return 'var module={}';
return 'var module={};';
});
$sources->addFile($this->js);
$sources->addString(function () use ($moduleName) {
return "flarum.extensions['$moduleName']=module.exports";
return "flarum.extensions['$moduleName']=module.exports;";
});
});
}