{"action":"closed","issue":{"url":"https://api.github.com/repos/nikku/karma-browserify/issues/128","labels_url":"https://api.github.com/repos/nikku/karma-browserify/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/nikku/karma-browserify/issues/128/comments","events_url":"https://api.github.com/repos/nikku/karma-browserify/issues/128/events","html_url":"https://github.com/nikku/karma-browserify/issues/128","id":79119347,"number":128,"title":"karma-browserify with handlebars-runtime?","user":{"login":"leiming","id":2059859,"avatar_url":"https://avatars.githubusercontent.com/u/2059859?v=3","gravatar_id":"","url":"https://api.github.com/users/leiming","html_url":"https://github.com/leiming","followers_url":"https://api.github.com/users/leiming/followers","following_url":"https://api.github.com/users/leiming/following{/other_user}","gists_url":"https://api.github.com/users/leiming/gists{/gist_id}","starred_url":"https://api.github.com/users/leiming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leiming/subscriptions","organizations_url":"https://api.github.com/users/leiming/orgs","repos_url":"https://api.github.com/users/leiming/repos","events_url":"https://api.github.com/users/leiming/events{/privacy}","received_events_url":"https://api.github.com/users/leiming/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-21T18:52:55Z","updated_at":"2015-05-22T03:35:16Z","closed_at":"2015-05-22T03:35:16Z","body":"My current problem is using https://github.com/epeli/node-hbsfy and https://github.com/Nikku/karma-browserify always throw `bundle error`while require hbs. Here is my  karma.conf.js\r\n\r\n\r\n## karma.conf.js\r\n```js\r\n'use strict';\r\n\r\nmodule.exports = function (karma) {\r\n  karma.set({\r\n\r\n    frameworks: ['jasmine', 'browserify'],\r\n\r\n    files: [\r\n      'src/**/*.js',\r\n      'test/**/*Spec.js'\r\n    ],\r\n\r\n    // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'\r\n    reporters: ['progress'],\r\n\r\n    preprocessors: {\r\n      'src/**/*.js'     : ['browserify'],\r\n      'test/**/*Spec.js': ['browserify']\r\n    },\r\n\r\n    browsers: ['Chrome'],\r\n\r\n    logLevel: 'LOG_DEBUG',\r\n\r\n    //singleRun: true,\r\n    autoWatch: true,\r\n\r\n    // browserify configuration\r\n    browserify: {\r\n      debug     : true,\r\n      transform : ['brfs', 'browserify-shim', ['hbsfy', {\"extensions\": \"hbs\"}]]\r\n    }\r\n  });\r\n};\r\n```\r\n\r\n## index.js\r\n```js\r\nvar handlebars = require('handlebars')\r\n\r\n// maybe it is!\r\nvar template = require(\"./test.hbs\")\r\nvar context = {title: \"My New Post\", body: \"This is my first post!\"};\r\ntemplate(context)\r\n```\r\n\r\nIt seems that using preprocessor of https://github.com/petrbela/karma-handlebars-preprocessor may solve `hbs` to `js` in karma, but I have not succeed so far.\r\n\r\nMy question is: Could karma-browserify support handlebars? if it could, please give me some tips, thank you very much!"}}