Skip to content

Commit 98d49be

Browse files
committed
revert tasks/partial_bundle.js
1 parent 862ff3e commit 98d49be

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tasks/partial_bundle.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var header = constants.licenseDist + '\n';
88
var allTransforms = constants.allTransforms;
99
var allTraces = constants.allTraces;
1010
var mainIndex = constants.mainIndex;
11-
var excludedTraces = constants.excludedTraces;
1211

1312
// Browserify the plotly.js partial bundles
1413
module.exports = function partialBundle(tasks, opts) {
@@ -26,8 +25,7 @@ module.exports = function partialBundle(tasks, opts) {
2625

2726
var all = ['calendars'].concat(allTransforms).concat(allTraces);
2827
var includes = (calendars ? ['calendars'] : []).concat(transformList).concat(traceList);
29-
var excludes = all.filter(function(e) { return includes.indexOf(e) === -1 && excludedTraces.indexOf(e) === -1; });
30-
var missing = includes.filter(function(e) { return excludedTraces.indexOf(e) !== -1; });
28+
var excludes = all.filter(function(e) { return includes.indexOf(e) === -1; });
3129

3230
excludes.forEach(function(t) {
3331
var WHITESPACE_BEFORE = '\\s*';
@@ -48,18 +46,6 @@ module.exports = function partialBundle(tasks, opts) {
4846
partialIndex = newCode;
4947
});
5048

51-
missing.forEach(function(t) {
52-
// find 'Plotly.register([' and add require('./<trace>')
53-
var REGEX_BEFORE = new RegExp(
54-
'Plotly\\.register\\(\\[\\n',
55-
'g');
56-
partialIndex = partialIndex.replace(
57-
REGEX_BEFORE,
58-
'Plotly.register([\n' +
59-
' require(\'./' + t + '\'),\n'
60-
);
61-
});
62-
6349
common.writeFile(index, partialIndex, done);
6450
});
6551

0 commit comments

Comments
 (0)