File tree 4 files changed +12
-10
lines changed 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 3
3
[" env" , {
4
4
"targets" : {
5
5
"node" : 4
6
- }
6
+ },
7
+ "include" : [" transform-regenerator" ]
7
8
}],
8
9
" flow"
9
10
],
Original file line number Diff line number Diff line change 12
12
"babel-generator" : " 6.25.0" ,
13
13
"babel-plugin-system-import-transformer" : " 3.1.0" ,
14
14
"babel-plugin-transform-decorators-legacy" : " ^1.3.4" ,
15
+ "babel-polyfill" : " ^6.23.0" ,
15
16
"babel-preset-env" : " ^1.6.0" ,
16
17
"babel-preset-es2015" : " ^6.16.0" ,
17
18
"babel-preset-react" : " ^6.16.0" ,
61
62
"are-we-flow-yet" : " ^1.0.0" ,
62
63
"babel-cli" : " ^6.24.1" ,
63
64
"babel-eslint" : " ^7.2.3" ,
64
- "babel-jest" : " ^20.0.1 " ,
65
+ "babel-jest" : " ^20.0.3 " ,
65
66
"babel-plugin-transform-es2015-modules-commonjs" : " ^6.24.1" ,
66
67
"babel-preset-flow" : " ^6.23.0" ,
67
68
"chdir" : " 0.0.0" ,
Original file line number Diff line number Diff line change
1
+ require ( 'babel-polyfill' ) ;
1
2
var fs = require ( 'fs' ) ,
2
3
_ = require ( 'lodash' ) ,
3
4
sort = require ( './sort' ) ,
Original file line number Diff line number Diff line change @@ -23,14 +23,13 @@ var mergeConfig = require('../merge_config');
23
23
* streamArray(output).pipe(vfs.dest('./output-directory'));
24
24
* });
25
25
*/
26
- function html ( comments : Array < Comment > , config : Object = { } ) {
27
- return mergeConfig ( config ) . then ( ( config : DocumentationConfig ) => {
28
- var themePath = '../default_theme/' ;
29
- if ( config . theme ) {
30
- themePath = path . resolve ( process . cwd ( ) , config . theme ) ;
31
- }
32
- return require ( themePath ) ( comments , config ) ;
33
- } ) ;
26
+ async function html ( comments : Array < Comment > , config : Object = { } ) {
27
+ const mergedConfig : DocumentationConfig = await mergeConfig ( config ) ;
28
+ var themePath = '../default_theme/' ;
29
+ if ( mergedConfig . theme ) {
30
+ themePath = path . resolve ( process . cwd ( ) , mergedConfig . theme ) ;
31
+ }
32
+ return require ( themePath ) ( comments , mergedConfig ) ;
34
33
}
35
34
36
35
module . exports = html ;
You can’t perform that action at this time.
0 commit comments