File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
shelly/plotlyjs/static/plotlyjs Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 15
15
"convex-hull" : " ^1.0.3" ,
16
16
"d3" : " 3.3.5" ,
17
17
"delaunay-triangulate" : " ^1.1.6" ,
18
+ "es6-promise" : " ^3.0.2" ,
18
19
"gl-error3d" : " ^1.0.0" ,
19
20
"gl-line3d" : " ^1.0.1" ,
20
21
"gl-mat4" : " ^1.1.2" ,
28
29
"ndarray-fill" : " ^1.0.1" ,
29
30
"ndarray-homography" : " ^1.0.0" ,
30
31
"ndarray-ops" : " ^1.2.2" ,
31
- "promise" : " 6.1.0" ,
32
32
"right-now" : " ^1.0.0" ,
33
33
"superscript-text" : " ^1.0.0" ,
34
34
"through2" : " ^2.0.0" ,
Original file line number Diff line number Diff line change
1
+ require ( 'es6-promise' ) . polyfill ( ) ;
2
+
1
3
// order of requires should matter only for interdependencies
2
4
// in attributes definitions. put the common modules first
3
5
exports . Lib = require ( './lib/lib' ) ;
@@ -58,9 +60,5 @@ exports.Snapshot = require('./snapshot/snapshot');
58
60
// Queue for undo/redo
59
61
exports . Queue = require ( './queue' ) ;
60
62
61
- // promise polyfill, embed rather than requiring dependencies
62
- require ( '../../../../shelly/static/js/plugins/promise-1.0.0.min.js' ) ;
63
- require ( '../../../../shelly/static/js/plugins/promise-done-1.0.0.js' ) ;
64
-
65
63
// exports d3 used in the bundle
66
64
exports . d3 = require ( 'd3' ) ;
You can’t perform that action at this time.
0 commit comments