@@ -44,8 +44,6 @@ if(process.argv.length > 2) {
44
44
var transforms = inputArray ( args . transforms , allTransforms ) ;
45
45
var calendars = inputBoolean ( args . calendars , true ) ;
46
46
var keepindex = inputBoolean ( args . keepindex , false ) ;
47
- var sourcemaps = inputBoolean ( args . sourcemaps , false ) ;
48
- var unminified = inputBoolean ( args . unminified , false ) ;
49
47
50
48
var i , t ;
51
49
@@ -83,24 +81,21 @@ if(process.argv.length > 2) {
83
81
traceList : traceList ,
84
82
transformList : transformList ,
85
83
calendars : calendars ,
86
- sourcemaps : sourcemaps ,
87
84
88
85
name : out ,
89
- index : path . join ( constants . pathToLib , 'index-' + out + '.js' )
86
+ index : path . join ( constants . pathToLib , 'index-' + out + '.js' ) ,
87
+ dist : path . join ( constants . pathToDist , 'plotly-' + out + '.js' ) ,
88
+ distMin : path . join ( constants . pathToDist , 'plotly-' + out + '.min.js' )
90
89
} ;
91
90
92
- if ( unminified ) {
93
- opts . dist = path . join ( constants . pathToDist , 'plotly-' + out + '.js' ) ;
94
- } else {
95
- opts . distMin = path . join ( constants . pathToDist , 'plotly-' + out + '.min.js' ) ;
96
- }
97
-
98
91
if ( ! keepindex ) {
99
92
opts . deleteIndex = true ;
100
93
}
101
94
102
95
console . log ( opts ) ;
103
96
97
+ opts . sourcemap = true ;
98
+
104
99
var tasks = [ ] ;
105
100
106
101
partialBundle ( tasks , opts ) ;
@@ -119,7 +114,7 @@ function partialBundle(tasks, opts) {
119
114
var traceList = opts . traceList ;
120
115
var transformList = opts . transformList ;
121
116
var calendars = opts . calendars ;
122
- var sourcemaps = opts . sourcemaps ;
117
+ var sourcemap = opts . sourcemap ;
123
118
var deleteIndex = opts . deleteIndex ;
124
119
125
120
tasks . push ( function ( done ) {
@@ -154,7 +149,7 @@ function partialBundle(tasks, opts) {
154
149
155
150
tasks . push ( function ( done ) {
156
151
var bundleOpts = {
157
- debug : sourcemaps ,
152
+ debug : sourcemap ,
158
153
deleteIndex : deleteIndex ,
159
154
standalone : 'Plotly' ,
160
155
pathToMinBundle : distMin
0 commit comments