Has any one run into the problem of using chunk files with Angular or React when serving on the app on Netsuite
s
Shawn Talbert
05/30/2024, 2:55 PM
Unless you have a NS account capable of relative paths, any chunks meant for lazy loading will have to use appropriate file cabinet urls
Shawn Talbert
05/30/2024, 2:55 PM
For this reason, we've generally kept things in a single chunk when doing angular on NetSuite, and it still runs much faster than any native NS screens 🙂
r
Ron
05/31/2024, 3:27 PM
Do you know how I prevent Angular from creating chuck files when compiling? They appear to be generated by certain Libraries that I don't have control over. This seems to be a problem when I moved to Angular 17.
s
Shawn Talbert
05/31/2024, 7:31 PM
having the chunks may not be bad - I don't remember off the top of my head how to prevent it but perhaps if you just eager load all the chunks in your index.html you'll be good?