mirror of
https://github.com/flarum/framework.git
synced 2025-02-16 23:22:45 +08:00
Update externals function syntax
This commit is contained in:
parent
60e8dfb236
commit
7de88fb499
|
@ -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] + "']");
|
||||
|
|
Loading…
Reference in New Issue
Block a user