Angular6/7 upgrade: no longer able to play with vendor code

8 views
Skip to first unread message

Peter Hsu

unread,
Jan 25, 2019, 2:17:57 PM1/25/19
to Angular and AngularJS discussion
Hi Angular

I recently upgraded my app from angular 1.7.4 to 7.1.2 but I run into some difficulties.

I used to be able to ``ng serve`` my app and then go into ``node_modules`` directory and temper with the vendor code for diagnostic purpose. The angular live development service would be able to detect my change and recompile on the spot. I find it extremely useful.

However, after I switch to 7.1.2, I can no longer do that. I tried to insert debug code in ``node_module`` directory or even go into the ``dist`` directory and try changing ``vendor.js`` and nothing seem to work. How do you debug dependencies?

thanks

Sander Elias

unread,
Jan 26, 2019, 7:52:50 AM1/26/19
to Angular and AngularJS discussion
Hi Peter,

You grab de dependency from its source and build your own version of them. Then you use npm/yarn link to pull it in your project.  
Fiddling around in node_modules is tricky at least.  Most 3rth parties pull in a minimized/optimized resource.

Regards
Sander


Peter Hsu

unread,
Jan 27, 2019, 2:08:37 PM1/27/19
to ang...@googlegroups.com
I see, thanks Sander

--
You received this message because you are subscribed to a topic in the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/S1L0ZiqttpU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages