From 7d80b88d5c70608eb950ebf41634dcb33e48f628 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Wed, 24 Mar 2021 00:54:08 -0400 Subject: [PATCH] Add semicolons in `flarum.extension` assignments Without these, content generated by webpack 5 breaks --- src/Extend/Frontend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extend/Frontend.php b/src/Extend/Frontend.php index 1726307d9..cb63c8eab 100644 --- a/src/Extend/Frontend.php +++ b/src/Extend/Frontend.php @@ -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;"; }); }); }