From 78e917639bdba82db4dcbd14c797d8e3f205d771 Mon Sep 17 00:00:00 2001 From: Julien Guimont Date: Wed, 30 Oct 2013 09:36:51 -0400 Subject: [PATCH] modules.require is only valid if the wrapper is commonjs --- src/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.coffee b/src/index.coffee index 801481d..e28c596 100644 --- a/src/index.coffee +++ b/src/index.coffee @@ -14,7 +14,7 @@ module.exports = class EmberHandlebarsCompiler @precompile = on if @config.files.templates.root? @root = sysPath.join 'app', @config.files.templates.root, sysPath.sep - if @config.modules.wrapper is off + if @config.modules.wrapper isnt 'commonjs' @modulesPrefix = '' if @config.files.templates.defaultExtension? @extension = @config.files.templates.defaultExtension