-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
No animations when compiling with Angular CLI #1658
Comments
There is currently a |
Hi @owen-m1 I can see that the repaint function is excluded and the call to repaint in the animate function is excluded too. Here is the compiled animate function
|
I think angulars build optimizer will remove unused properties, because it assumes that it has no side effects. I assume that you are calling |
@DanielToft Does calling that function instead cause the code to stay in the compiled build? |
Still having issues with that. |
Could you publish to NPM include this PR? |
Hi
When compiling SortableJS in production mode with angular CLI, there is no animations. I think, the build-optimizer maybe is removing some code.
I have found an old issue about the same here: SortableJS/ngx-sortablejs#70
I'm using the sortablejs library directly in my angular solution without ngx-sortablejs.
My environment look like this:
Angular: 8.2.9
Angular CLI: 8.3.8
sortablejs: 1.10.1
The text was updated successfully, but these errors were encountered: