diff --git a/lib/utils.js b/lib/utils.js index 47dce06e..9aec3b15 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -132,6 +132,13 @@ function getTemplateCompiler(templateCompilerPath, EmberENV = {}) { let sandbox = { EmberENV: clonedEmberENV, + + // Older versions of ember-template-compiler (up until ember-source@3.1.0) + // eagerly access `setTimeout` without checking via `typeof` first + setTimeout, + clearTimeout, + + // fake the module into thinking we are running inside a Node context module: { require, exports: {} }, require, };