You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Just running the ng serve --prod is possible to see both functions called, and just remapWithoutArrowFunction working.
Those are the functionsremand and remapWithoutArrowFunction
🐞 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: