1
0
mirror of synced 2025-12-19 09:57:42 -05:00

add empty logger functions turbopack fallback (#58742)

This commit is contained in:
Robert Sese
2025-12-05 15:14:52 -06:00
committed by GitHub
parent e016b2ac21
commit c87fca4d81
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
// Empty module to satisfy Turbopack resolveAlias fallback for Node.js modules // Empty module to satisfy Turbopack resolveAlias fallback for Node.js modules
// See turbopack config in next.config.ts // See turbopack config in next.config.ts
// No-op function that returns itself for chaining
export const createLogger = () => ({
info: () => {},
warn: () => {},
error: () => {},
debug: () => {},
})
export default {} export default {}

View File

@@ -65,6 +65,12 @@ const config: NextConfig = {
async_hooks: { async_hooks: {
browser: './empty.ts', // Point to empty module when async_hooks is requested for browser browser: './empty.ts', // Point to empty module when async_hooks is requested for browser
}, },
'@/observability/logger': {
browser: './empty.ts',
},
'@/observability/logger/lib/logger-context': {
browser: './empty.ts',
},
}, },
}, },