This commit is contained in:
ebbnormal 2018-03-27 22:21:04 +00:00 committed by GitHub
commit 343c38dd33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -346,6 +346,8 @@ function setupMiddleware(app, instructions) {
app.defineMiddlewarePhases(phases);
middleware.forEach(function(data) {
var middlewareUnexcluded = _.find(instructions.files.boot, function(o) { return o === data.sourceFile });
if (!middlewareUnexcluded){ return; }
debug('Configuring middleware %j%s', data.sourceFile,
data.fragment ? ('#' + data.fragment) : '');
var factory = requireNodeOrEsModule(data.sourceFile);