@@ -25,11 +25,11 @@ module.exports = function(grunt) {
2525 // custom browserify transformer to re-write plugins to
2626 // self-register with Raven via addPlugin
2727 function AddPluginBrowserifyTransformer ( ) {
28- return function ( file , options ) {
28+ return function ( file ) {
2929 return through ( function ( buf , enc , next ) {
3030 buf = buf . toString ( 'utf8' ) ;
3131 if ( / p l u g i n s / . test ( file ) ) {
32- buf += "\nRaven .addPlugin(module.exports);" ;
32+ buf += "\nrequire('../src/singleton') .addPlugin(module.exports);" ;
3333 }
3434 this . push ( buf ) ;
3535 next ( ) ;
@@ -69,6 +69,8 @@ module.exports = function(grunt) {
6969 } ;
7070
7171 var pluginCombinations = combine ( grunt . file . expand ( 'plugins/*.js' ) ) ;
72+
73+ var pluginCombinations = [ [ 'plugins/ember.js' ] ] ;
7274 var pluginConcatFiles = _ . reduce ( pluginCombinations , function ( dict , comb ) {
7375 var key = _ . map ( comb , function ( plugin ) {
7476 return path . basename ( plugin , '.js' ) ;
@@ -100,9 +102,11 @@ module.exports = function(grunt) {
100102 } ,
101103 plugins : {
102104 files : pluginConcatFiles ,
103- transform : [
104- [ new AddPluginBrowserifyTransformer ( ) ]
105- ]
105+ options : {
106+ transform : [
107+ [ new AddPluginBrowserifyTransformer ( ) ]
108+ ]
109+ }
106110 } ,
107111 test : {
108112 src : 'test/**/*.test.js' ,
0 commit comments