Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
25
node_modules/next/dist/build/duration-to-string.js
generated
vendored
Normal file
25
node_modules/next/dist/build/duration-to-string.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "durationToString", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return durationToString;
|
||||
}
|
||||
});
|
||||
function durationToString(compilerDuration) {
|
||||
let durationString;
|
||||
if (compilerDuration > 120) {
|
||||
durationString = `${(compilerDuration / 60).toFixed(1)}min`;
|
||||
} else if (compilerDuration > 40) {
|
||||
durationString = `${compilerDuration.toFixed(0)}s`;
|
||||
} else if (compilerDuration > 2) {
|
||||
durationString = `${compilerDuration.toFixed(1)}s`;
|
||||
} else {
|
||||
durationString = `${(compilerDuration * 1000).toFixed(0)}ms`;
|
||||
}
|
||||
return durationString;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=duration-to-string.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue