mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 06:53:05 +08:00
Add semicolons in flarum.extension
assignments
Without these, content generated by webpack 5 breaks
This commit is contained in:
parent
2cd1c2964a
commit
7d80b88d5c
|
@ -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;";
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user