mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Just adding some test coverage - Turbopack: module are only evaluated when the given module is actually rendered - Webpack: all client component modules are evaluated when at least one client reference renders
5 lines
106 B
TypeScript
5 lines
106 B
TypeScript
'use client'
|
|
|
|
// @ts-expect-error
|
|
if (typeof window !== 'undefined') window.client_sideeffect_only = true
|