Anyone else encountered WebPack in SuiteScripts?
# suitescript
c
Anyone else encountered WebPack in SuiteScripts?
g
Yeah, it's fairly common for typescript coders.
I'm sure there are other use cases too.
d
I used to use it in my TypeScript development, but then I decided it wasn't worth it
c
The whole script looks pretty weird - if this is what TS is outputting, it needs to go away. Whatever you leave in production needs to be maintainable by the next person. This NS partner didn't even leave behind a repo of TS files, I'm just working on their transpiled output.
d
Exactly that was my point too. I tend to keep script readable both in TS and JS
c
The output is so beautiful 😄
🤣 1
I think TS is great but I'd keep it for building SuiteApps where the customer never needs to touch the code - I wouldn't use it for regular account customisations especially if you're going to keep the TS files to yourself when you leave.
👍 1
I'm yet to see any of the NS partners leave behind a repo of maintainable code even when the IP is owned by the customer.
Forget maintainable - not even a repo 😄
d
I always store both TS and JS in github. But also think it's a bad practice to edit code inside Netsuite
(not saying I never do so 🙂 )
c
I pull everything into WebStorm
🤝 1
and use github