@@ -5,7 +5,6 @@ var browserify = require('browserify');
5
5
var minify = require ( 'minify-stream' ) ;
6
6
var derequire = require ( 'derequire' ) ;
7
7
var through = require ( 'through2' ) ;
8
- var exorcist = require ( 'exorcist' ) ;
9
8
10
9
var strictD3 = require ( './strict_d3' ) ;
11
10
@@ -35,8 +34,7 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) {
35
34
36
35
var browserifyOpts = { } ;
37
36
browserifyOpts . standalone = opts . standalone ;
38
- var sourceMap = opts . pathToSourceMap ;
39
- browserifyOpts . debug = opts . debug || ! ! sourceMap ;
37
+ browserifyOpts . debug = opts . debug ;
40
38
41
39
if ( opts . noCompress ) {
42
40
browserifyOpts . ignoreTransform = './tasks/compress_attributes.js' ;
@@ -70,33 +68,17 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) {
70
68
ascii_only : true
71
69
} ,
72
70
73
- sourceMap : sourceMap ? {
74
- includeSources : true ,
75
- root : '/' ,
76
- filename : path . basename ( pathToMinBundle )
77
- } : false
71
+ sourceMap : false
78
72
} ;
79
73
80
- if ( sourceMap ) {
81
- bundleStream
82
- . pipe ( applyDerequire ( ) )
83
- . pipe ( minify ( minifyOpts ) )
84
- . pipe ( exorcist ( sourceMap ) )
85
- . pipe ( fs . createWriteStream ( pathToMinBundle ) )
86
- . on ( 'finish' , function ( ) {
87
- logger ( pathToMinBundle ) ;
88
- done ( ) ;
89
- } ) ;
90
- } else {
91
- bundleStream
92
- . pipe ( applyDerequire ( ) )
93
- . pipe ( minify ( minifyOpts ) )
94
- . pipe ( fs . createWriteStream ( pathToMinBundle ) )
95
- . on ( 'finish' , function ( ) {
96
- logger ( pathToMinBundle ) ;
97
- done ( ) ;
98
- } ) ;
99
- }
74
+ bundleStream
75
+ . pipe ( applyDerequire ( ) )
76
+ . pipe ( minify ( minifyOpts ) )
77
+ . pipe ( fs . createWriteStream ( pathToMinBundle ) )
78
+ . on ( 'finish' , function ( ) {
79
+ logger ( pathToMinBundle ) ;
80
+ done ( ) ;
81
+ } ) ;
100
82
}
101
83
102
84
if ( pathToBundle ) {
0 commit comments