File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 12
12
* treemap - Enable treemap build visualization (release only).
13
13
* treenet - Enable treenet build visualization (release only).
14
14
* treesun - Enable treesun build visualization (release only).
15
+ * treeflame - Enable treeflame build visualization (release only).
15
16
*/
16
17
17
18
import { execSync } from 'child_process' ;
@@ -22,7 +23,8 @@ const ENV_START_MATCHES = [
22
23
'target' ,
23
24
'treemap' ,
24
25
'treenet' ,
25
- 'treesun'
26
+ 'treesun' ,
27
+ 'treeflame'
26
28
] ;
27
29
28
30
const env = [ ] ;
Original file line number Diff line number Diff line change 111
111
"build:treemap" : " npm run build target:release treemap" ,
112
112
"build:treenet" : " npm run build target:release treenet" ,
113
113
"build:treesun" : " npm run build target:release treesun" ,
114
+ "build:treeflame" : " npm run build target:release treeflame" ,
114
115
"build:sourcemaps" : " npm run build -- -m" ,
115
116
"watch" : " npm run build -- -w" ,
116
117
"watch:release" : " npm run build target:release -- -w" ,
Original file line number Diff line number Diff line change @@ -149,6 +149,13 @@ function getOutPlugins(type) {
149
149
} ) ) ;
150
150
}
151
151
152
+ if ( process . env . treeflame ) {
153
+ plugins . push ( visualizer ( {
154
+ filename : `treeflame.${ type } .html` ,
155
+ template : 'flamegraph'
156
+ } ) ) ;
157
+ }
158
+
152
159
return plugins ;
153
160
}
154
161
You can’t perform that action at this time.
0 commit comments