             try
                 @context.template = Buffer(src).toString()
                 vm.runInContext compile, @context
-                results.push "T[\"#{key}\"] = t(#{@context.js.toString()});\n"
+
+                results.push "T[\"#{key}\"] = t(#{@context.js});\n"
             catch e
                 @log "error", "ParserError: #{e.toString()}"
+                @log "error", e.stack
 
         RSVP.Promise.resolve results.join ""
 

            export default T;
        """ ]

        compile = "js = Emblem.precompile(Em.Handlebars, template)"

        for pathname, src of @state.files
            pathname = @unprefix pathname

        else
            p = @pipeline.broadcast
                type: "getVendorVanillaPackages"
                packages: {
                    "handlebars": []
                    "ember": ["ember-template-compiler.js"]
                    "emblem": []
                }
            .then (res) =>
                @log "verbose", "Got vanilla vendor packages"

                res = (r for r in res when r)[0]

                @state.vendor.handlebars = res.handlebars[0].toString "utf8"
                @state.vendor.ember = res.ember[0].toString "utf8"
                @state.vendor.emblem = res.emblem[0].toString "utf8"

        p.then =>
            @context = vm.createContext {}
            @context.window = @context

            try
                v = @state.vendor
                @log "verbose", "loading handlebars"
                vm.runInContext v.handlebars, @context, "handlebars.js"
                @log "verbose", "loading emblem"
                vm.runInContext v.emblem, @context, "emblem.js"
                @log "verbose", "loading ember"
                ember_src = v.ember.replace /exports/g, "this"
                vm.runInContext ember_src, @context, "ember.js"
            catch e
                @log "error", "Could not initialize compile environemnt: #{e}"
                @log "error", e.stack
                @context = null
            super()

