File tree 7 files changed +12
-9
lines changed
7 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - " 0.10 "
3
+ - " 6 "
4
4
5
5
sudo : false # Use container-based architecture
6
6
script : >
Original file line number Diff line number Diff line change 9
9
< div id ="graph "> </ div >
10
10
< div id ="mocha "> </ div >
11
11
12
- <!-- Polyfills for PhantomJS -->
13
- < script src ="../node_modules/babel-core/browser-polyfill.js "> </ script >
14
-
15
12
<!-- Mocha -->
16
13
< script src ="../node_modules/mocha/mocha.js "> </ script >
17
14
< script src ="../node_modules/chai/chai.js "> </ script >
Original file line number Diff line number Diff line change 9
9
< div id ="graph "> </ div >
10
10
< div id ="mocha "> </ div >
11
11
12
- <!-- Polyfills for PhantomJS -->
13
- < script src ="../node_modules/babel-core/browser-polyfill.js "> </ script >
14
-
15
12
<!-- Mocha -->
16
13
< script src ="../node_modules/mocha/mocha.js "> </ script >
17
14
< script src ="../node_modules/chai/chai.js "> </ script >
Original file line number Diff line number Diff line change 14
14
import Dygraph from '../../src/dygraph' ;
15
15
import Util from './Util' ;
16
16
17
+ import 'core-js/es6/promise' ;
18
+
17
19
function dygraphPromise ( div , data , opts ) {
18
20
return new Promise ( ( resolve , reject ) => {
19
21
const g = new Dygraph ( div , data , opts ) ;
Original file line number Diff line number Diff line change 60
60
},
61
61
"pre-commit" : [
62
62
" tests-ok"
63
- ]
63
+ ],
64
+ "dependencies" : {
65
+ "core-js" : " ^2.4.1"
66
+ }
64
67
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ browserify \
34
34
# Create dist/dygraph.tmp.js.map
35
35
cat dist/dygraph.tmp.js | exorcist --base . dist/dygraph.tmp.js.map > /dev/null
36
36
37
- header=' /*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
37
+ header=' /*! @license Copyright 2017 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
38
38
39
39
# Create dist/dygraph.js.min{,.map}
40
40
uglifyjs --compress --mangle \
Original file line number Diff line number Diff line change 43
43
44
44
*/
45
45
46
+ // Polyfills
47
+ import 'core-js/es6/symbol' ;
48
+ import 'core-js/fn/symbol/iterator' ;
49
+
46
50
import DygraphLayout from './dygraph-layout' ;
47
51
import DygraphCanvasRenderer from './dygraph-canvas' ;
48
52
import DygraphOptions from './dygraph-options' ;
You can’t perform that action at this time.
0 commit comments