Skip to content

Commit c73ec92

Browse files
authored
fix: broken sentry JS asset compilation with Webpack 5
1 parent f9a4535 commit c73ec92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SentryServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ function (Assets $assets) {
113113
if ((bool) (int) resolve('flarum.settings')->get('fof-sentry.javascript')) {
114114
$assets->js(function (SourceCollector $sources) {
115115
$sources->addString(function () {
116-
return 'var module={}';
116+
return 'var module={};';
117117
});
118118
$sources->addFile(__DIR__.'/../js/dist/forum.js');
119119
$sources->addString(function () {
120-
return "flarum.extensions['fof-sentry']=module.exports";
120+
return "flarum.extensions['fof-sentry']=module.exports;";
121121
});
122122
});
123123
}

0 commit comments

Comments
 (0)