File tree 1 file changed +8
-8
lines changed
packages/gatsby-cli/src/reporter 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
import semver from "semver"
5
5
import { isCI } from "gatsby-core-utils"
6
- import { initializeIPCLogger } from "./loggers/ipc"
7
- import { initializeJSONLogger } from "./loggers/json"
8
- import { initializeYurnalistLogger } from "./loggers/yurnalist"
9
- import { initializeINKLogger } from "./loggers/ink"
10
6
11
7
export const startLogger = ( ) : void => {
12
8
if ( ! process . env . GATSBY_LOGGER ) {
@@ -26,14 +22,18 @@ export const startLogger = (): void => {
26
22
// This is just workaround to not crash process when reporter is used in worker context.
27
23
// process.env.FORCE_COLOR = `0`
28
24
29
- initializeIPCLogger ( )
25
+ // TODO move to dynamic imports
26
+ require ( `./loggers/ipc` ) . initializeIPCLogger ( )
30
27
}
31
28
32
29
if ( process . env . GATSBY_LOGGER . includes ( `json` ) ) {
33
- initializeJSONLogger ( )
30
+ // TODO move to dynamic imports
31
+ require ( `./loggers/json` ) . initializeJSONLogger ( )
34
32
} else if ( process . env . GATSBY_LOGGER . includes ( `yurnalist` ) ) {
35
- initializeYurnalistLogger ( )
33
+ // TODO move to dynamic imports
34
+ require ( `./loggers/yurnalist` ) . initializeYurnalistLogger ( )
36
35
} else {
37
- initializeINKLogger ( )
36
+ // TODO move to dynamic imports
37
+ require ( `./loggers/ink` ) . initializeINKLogger ( )
38
38
}
39
39
}
You can’t perform that action at this time.
0 commit comments