Skip to content

Commit 5aa2234

Browse files
committed
drop sourcemap and unminified options
1 parent cbb431e commit 5aa2234

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

tasks/partial_bundle.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ if(process.argv.length > 2) {
4444
var transforms = inputArray(args.transforms, allTransforms);
4545
var calendars = inputBoolean(args.calendars, true);
4646
var keepindex = inputBoolean(args.keepindex, false);
47-
var sourcemaps = inputBoolean(args.sourcemaps, false);
48-
var unminified = inputBoolean(args.unminified, false);
4947

5048
var i, t;
5149

@@ -83,24 +81,21 @@ if(process.argv.length > 2) {
8381
traceList: traceList,
8482
transformList: transformList,
8583
calendars: calendars,
86-
sourcemaps: sourcemaps,
8784

8885
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')
9089
};
9190

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-
9891
if(!keepindex) {
9992
opts.deleteIndex = true;
10093
}
10194

10295
console.log(opts);
10396

97+
opts.sourcemap = true;
98+
10499
var tasks = [];
105100

106101
partialBundle(tasks, opts);
@@ -119,7 +114,7 @@ function partialBundle(tasks, opts) {
119114
var traceList = opts.traceList;
120115
var transformList = opts.transformList;
121116
var calendars = opts.calendars;
122-
var sourcemaps = opts.sourcemaps;
117+
var sourcemap = opts.sourcemap;
123118
var deleteIndex = opts.deleteIndex;
124119

125120
tasks.push(function(done) {
@@ -154,7 +149,7 @@ function partialBundle(tasks, opts) {
154149

155150
tasks.push(function(done) {
156151
var bundleOpts = {
157-
debug: sourcemaps,
152+
debug: sourcemap,
158153
deleteIndex: deleteIndex,
159154
standalone: 'Plotly',
160155
pathToMinBundle: distMin

0 commit comments

Comments
 (0)