random curiosity, has anyone seen any chatter arou...
# sdf
d
random curiosity, has anyone seen any chatter around NetSuite JS module engine finally supporting ES6 modules? Pulled this from a 2018 SuiteWorld presentation: (also on some 2019 SW slides on "ES.Next", but have not seen anything at all regarding since then)
s
I haven't heard anything more, but have been using 'native' module syntax via TypeScript for many years now.
d
yah I was messing around with a proof of concept using Babel & tsc etc. to transpile from 'native' to AMD - it works, but would just be nice if could avoid all that and just do within NS source code without all the additional factors
s
well, I don't use Babel, only TSC. I compile to UMD, which works equally well in NetSuite and in Jest unit tests (commonjs) without any recompilation.
👍 1
Since my IDE supports auto compiling TS, there's nothing much to 'avoid' - my workflow is simply 1. edit TS code 2. deploy the JS code. There no complicated build process involved.