diff --git a/karma.conf.js b/karma.conf.js index 6d72605..f8041b6 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,5 +1,3 @@ -var webpack = require('./webpack.config.js'); - module.exports = function(karma) { karma.set({ frameworks: ['jasmine'], @@ -15,7 +13,23 @@ module.exports = function(karma) { singleRun: false, webpack: { devtool: 'inline-source-map', - module: webpack.module + module: { + loaders: [ + { + test: /\.js$/, + exclude: /node_modules/, + loader: 'babel' + }, + { + test: require.resolve('snapsvg'), + loader: 'imports-loader?this=>window,fix=>module.exports=0' + }, + { + test: /\.peg$/, + loader: require.resolve('./lib/canopy-loader') + } + ] + } } }); };