Has any one run into the problem of using chunk fi...
# suitescript
r
Has any one run into the problem of using chunk files with Angular or React when serving on the app on Netsuite
s
Unless you have a NS account capable of relative paths, any chunks meant for lazy loading will have to use appropriate file cabinet urls
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
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
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?