Skip to content

Commit c53b820

Browse files
Move d3 imports out of global bundle (#3357)
More incremental progress towards reducing the size of the legacy JS bundle and more precisely defining JS dependencies.
1 parent d85be15 commit c53b820

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

resources/js/angular/controllers/overview.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import d3 from 'd3';
2+
import nv from 'nvd3';
3+
14
function makeLineChart(elementName, inputData, project, anchor, sort) {
25
jQuery(function(){
36

resources/js/angular/directives/timeline.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import d3 from 'd3';
2+
import nv from 'nvd3';
3+
14
var timelineController =
25
function TimelineChartController($http, $scope) {
36
$scope.loading = true;

resources/js/angular/legacy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import 'angular-ui-sortable/dist/sortable.js';
1212
import 'as-jqplot/dist/jquery.jqplot.js';
1313
import 'as-jqplot/dist/plugins/jqplot.dateAxisRenderer.js';
1414
import 'as-jqplot/dist/plugins/jqplot.highlighter.js';
15-
import 'd3/d3.js';
16-
import 'nvd3/build/nv.d3.js';
1715
import './ui-bootstrap-tpls-0.14.2.min.js';
1816
import './tabNavigation.js';
1917
import './jquery.tablesorter.js';

0 commit comments

Comments
 (0)