When using bunchee -m, minification removes the directive at the top of the file, components with "use client", after building, become server components even though they are separated into a x-client.js file. Works fine when using just bunchee without minification.
When using bunchee -m, minification removes the directive at the top of the file, components with "use client", after building, become server components even though they are separated into a x-client.js file. Works fine when using just bunchee without minification.
Originally posted by @lovrozagar in https://github.com/huozhi/bunchee/issues/305#issuecomment-1951378050