Skip to content

Commit

Permalink
fix: broken sentry JS asset compilation with Webpack 5
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat authored May 27, 2022
1 parent f9a4535 commit c73ec92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SentryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ function (Assets $assets) {
if ((bool) (int) resolve('flarum.settings')->get('fof-sentry.javascript')) {
$assets->js(function (SourceCollector $sources) {
$sources->addString(function () {
return 'var module={}';
return 'var module={};';
});
$sources->addFile(__DIR__.'/../js/dist/forum.js');
$sources->addString(function () {
return "flarum.extensions['fof-sentry']=module.exports";
return "flarum.extensions['fof-sentry']=module.exports;";
});
});
}
Expand Down

0 comments on commit c73ec92

Please sign in to comment.