-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build optimization breaks my library code #13768
Comments
Heya, can you elaborate on what |
When I export a function using arrow functions, apparently, the compiler ignores the code inside the function. In the repository, I create the same code using the arrow function and a non-arrow function. Those are the functions |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Not sure.
Description
I created a workspace with two projects.
main-app is an application that is responsible for running the library.
domain is a library that has classes and utility methods.
When I build
main-app
in production (optimization=true
), my utility function in domain library doesn't work.Apparently, the problem only happens when you export arrow functions.
🔬 Minimal Reproduction
I created a repository in GitHub to reproduce this error.
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: