it doesn't preserve any "use client" flags in the output code at all
I am thoroughly confused as to why having the commented-out block of config options does the trick when it comes to properly preserving the "use client" flag (for targeted files containing this flag only)
The following config preserves all
"use client"
flags for react files containing this flag but it is not clear why this is the case.however, if I uncomment the commented out code block as follows
It now applies the
"use client"
flag to every single output file which is of course undesired behaviorLastly, if I remove the commented out code as follows
it doesn't preserve any
"use client"
flags in the output code at allI am thoroughly confused as to why having the commented-out block of config options does the trick when it comes to properly preserving the "use client" flag (for targeted files containing this flag only)
package.json
tsconfig.json
Upvote & Fund