mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
Update externals function syntax
This commit is contained in:
@@ -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] + "']");
|
||||
|
Reference in New Issue
Block a user