mirror of
https://github.com/flarum/framework.git
synced 2025-03-19 19:45:19 +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…
x
Reference in New Issue
Block a user