From 7de88fb499826c5070d25216d09d159fc7af5f0d Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Wed, 27 Oct 2021 17:10:47 -0400 Subject: [PATCH] Update externals function syntax --- js-packages/webpack-config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-packages/webpack-config/index.js b/js-packages/webpack-config/index.js index a91e411d9..6d93d7463 100644 --- a/js-packages/webpack-config/index.js +++ b/js-packages/webpack-config/index.js @@ -111,7 +111,7 @@ module.exports = function (options = {}) { })(), // Support importing old-style core modules. - function (context, request, callback) { + function ({request}, callback) { let matches; if ((matches = /^flarum\/(.+)$/.exec(request))) { return callback(null, "root flarum.core.compat['" + matches[1] + "']");