File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module.exports = function(grunt) {
6
6
var through = require ( 'through2' ) ;
7
7
var proxyquire = require ( 'proxyquireify' ) ;
8
8
var versionify = require ( 'browserify-versionify' ) ;
9
+ var derequire = require ( 'derequire/plugin' ) ;
9
10
10
11
var excludedPlugins = [
11
12
'react-native'
@@ -98,7 +99,14 @@ module.exports = function(grunt) {
98
99
} ,
99
100
core : {
100
101
src : 'src/singleton.js' ,
101
- dest : 'build/raven.js'
102
+ dest : 'build/raven.js' ,
103
+ options : {
104
+ plugin : [ derequire ] ,
105
+ transform : [
106
+ [ versionify ] ,
107
+ [ new AddPluginBrowserifyTransformer ( ) ]
108
+ ]
109
+ }
102
110
} ,
103
111
plugins : {
104
112
files : pluginConcatFiles ,
Original file line number Diff line number Diff line change 11
11
"type" : " git" ,
12
12
"url" : " git://github.com/getsentry/raven-js.git"
13
13
},
14
- "main" : " src/singleton .js" ,
14
+ "main" : " dist/raven .js" ,
15
15
"devDependencies" : {
16
16
"browserify-versionify" : " ^1.0.6" ,
17
17
"chai" : " 2.3.0" ,
18
+ "derequire" : " 2.0.3" ,
18
19
"grunt" : " ^0.4.5" ,
19
20
"grunt-browserify" : " ^4.0.1" ,
20
21
"grunt-cli" : " ^0.1.13" ,
You can’t perform that action at this time.
0 commit comments