File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 44
55var Fuse = require ( 'fuse.js' ) ;
66var mocks = require ( '../../build/test_dashboard_mocks.json' ) ;
7+ var Lib = require ( '@src/lib' ) ;
78
89// put d3 in window scope
910var d3 = window . d3 = Plotly . d3 ;
@@ -119,6 +120,7 @@ var Tabs = {
119120
120121// Bind things to the window
121122window . Tabs = Tabs ;
123+ window . Lib = Lib ;
122124setInterval ( function ( ) {
123125 window . gd = Tabs . getGraph ( ) || Tabs . fresh ( ) ;
124126 window . fullLayout = window . gd . _fullLayout ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var watchify = require('watchify');
88
99var constants = require ( '../../tasks/util/constants' ) ;
1010var compress = require ( '../../tasks/util/compress_attributes' ) ;
11+ var shortcutPaths = require ( '../../tasks/util/shortcut_paths' ) ;
1112
1213var PORT = process . argv [ 2 ] || 3000 ;
1314
@@ -32,7 +33,9 @@ b.on('update', bundlePlotly);
3233
3334// Bundle devtools code
3435var devtoolsPath = path . join ( constants . pathToRoot , 'devtools/test_dashboard' ) ;
35- var devtools = browserify ( path . join ( devtoolsPath , 'devtools.js' ) , { } ) ;
36+ var devtools = browserify ( path . join ( devtoolsPath , 'devtools.js' ) , {
37+ transform : [ shortcutPaths ]
38+ } ) ;
3639
3740var firstBundle = true ;
3841
You can’t perform that action at this time.
0 commit comments