developit / developit/microbundle
'use client'
- Dominant language
- JavaScript
- Stars
- 8.1k
- Forks
- 358
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm the maintainer of [react-lenis](https://github.com/studio-freight/react-lenis) package and some people complain about using the library in next.js app context usage.
In fact it requires 'use client' directive on top of the file but I noticed that it's ignored by microbundle "Module level directives cause errors when bundled, 'use client' was ignored."
Do you have a solution for that ?
https://github.com/studio-freight/lenis/issues/170
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported package usage in a Next.js app and inspect how Microbundle handles the module-level 'use client' directive during bundling. There are no files or tests named in the issue; done means the directive is preserved or otherwise supported without the reported warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, next.js
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100