@@ -8,7 +8,6 @@ var header = constants.licenseDist + '\n';
88var allTransforms = constants . allTransforms ;
99var allTraces = constants . allTraces ;
1010var mainIndex = constants . mainIndex ;
11- var excludedTraces = constants . excludedTraces ;
1211
1312// Browserify the plotly.js partial bundles
1413module . 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