File size: 1,094 Bytes
c592d77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "default", {
    enumerable: true,
    get: function() {
        return _default;
    }
});
const _shared = require("../shared");
const _constants = require("../../shared/lib/constants");
const _tojson = require("./to-json");
const allowlistedEvents = new Set([
    'next-build',
    'run-turbopack',
    'run-webpack',
    'run-typescript',
    'run-eslint',
    'static-check',
    'collect-build-traces',
    'static-generation',
    'output-export-full-static-export',
    'adapter-handle-build-complete',
    'output-standalone',
    'telemetry-flush',
    'turbopack-build-events',
    'turbopack-persistence',
    'turbopack-compaction'
]);
const _default = (0, _tojson.createJsonReporter)({
    filename: 'trace-build',
    sizeLimit: Infinity,
    filter: (event)=>{
        const phase = _shared.traceGlobals.get('phase');
        return phase === _constants.PHASE_PRODUCTION_BUILD && allowlistedEvents.has(event.name);
    }
});

//# sourceMappingURL=to-json-build.js.map