File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 221221 "fastify-plugin" : " ^4 || ^5" ,
222222 "h3" : " ^2" ,
223223 "hono" : " ^4" ,
224- "koa" : " ^2 || ^3"
224+ "koa" : " ^2 || ^3" ,
225+ "pino" : " ^8 || ^9 || ^10"
225226 },
226227 "peerDependenciesMeta" : {
227228 "@adonisjs/core" : {
265266 },
266267 "koa" : {
267268 "optional" : true
269+ },
270+ "pino" : {
271+ "optional" : true
268272 }
269273 },
270274 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let sentry: typeof Sentry | undefined;
55// Initialize Sentry when the module is loaded
66( async ( ) => {
77 try {
8- sentry = await import ( "@sentry/node" ) ;
8+ sentry = await import ( /* webpackIgnore: true */ "@sentry/node" ) ;
99 } catch ( e ) {
1010 // Sentry SDK is not installed, ignore
1111 }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export async function patchNestLogger(
2020 }
2121
2222 try {
23- const { Logger } = await import ( "@nestjs/common" ) ;
23+ const { Logger } = await import ( /* webpackIgnore: true */ "@nestjs/common" ) ;
2424 const logMethods : LogLevel [ ] = [
2525 "log" ,
2626 "error" ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export async function patchPinoLogger(
4242
4343 const originalStream = logger [ originalStreamSym ] ;
4444 if ( originalStream ) {
45- const pino = await import ( "pino" ) ;
45+ const pino = await import ( /* webpackIgnore: true */ "pino" ) ;
4646 const captureStream = new ApitallyLogCaptureStream (
4747 logsContext ,
4848 logger [ messageKeySym ] ,
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ export async function patchWinston(
1818 }
1919
2020 try {
21- // @ts -expect-error - file is not typed
22- const loggerModule = await import ( "winston/lib/winston/logger.js" ) ;
21+ const loggerModule = await import (
22+ // @ts -expect-error - file is not typed
23+ /* webpackIgnore: true */ "winston/lib/winston/logger.js"
24+ ) ;
2325 if ( loggerModule . default ?. prototype ?. write ) {
2426 const originalWrite = loggerModule . default . prototype . write ;
2527 loggerModule . default . prototype . write = function ( info : any ) {
You can’t perform that action at this time.
0 commit comments