diff --git a/lib/loopback.js b/lib/loopback.js index 79bc19aa5..43f200b6c 100644 --- a/lib/loopback.js +++ b/lib/loopback.js @@ -203,7 +203,9 @@ loopback.template = function(file) { }); }; -require('../server/current-context')(loopback); +if (!process.loopbackClsDisabled) { + require('../server/current-context')(loopback); +} /** * Create a named vanilla JavaScript class constructor with an attached