File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ export async function handleRender(source, options) {
42
42
43
43
try {
44
44
const start = Date . now ( ) ;
45
- let spinner = showSpinner ( ) ;
46
45
const output = await render ( content , options ) ;
47
- spinner . stop ( ) ;
48
46
const time = ( Date . now ( ) - start ) / 1000 ;
49
47
if ( output ) {
50
48
console . log ( `Saved to ${ output } . (${ time } s)` ) ;
@@ -214,18 +212,3 @@ function readTime(number, options = {}) {
214
212
}
215
213
return Math . min ( result , options . max ?? Infinity ) ;
216
214
}
217
-
218
- function showSpinner ( ) {
219
- let i = 0 ;
220
- let spinner = [ '|' , '/' , '-' , '\\' ] ;
221
- let timer = setInterval ( ( ) => {
222
- process . stdout . write ( `\r${ spinner [ i ++ ] } ` ) ;
223
- i &= 3 ;
224
- } , 100 ) ;
225
- return {
226
- stop : ( ) => {
227
- clearInterval ( timer ) ;
228
- process . stdout . write ( '\r' ) ;
229
- }
230
- }
231
- }
You can’t perform that action at this time.
0 commit comments