has anyone got the ES6 import/export syntax to work with SuiteScript2.1 ?
I didn't know if this was supported yet, even in Beta, I keep getting Module loader-esque errors on my attempts to experiment with this feature.
s
stalbert
01/07/2020, 5:52 PM
I don't think native import/export is supported, since the module system is still AMD
stalbert
01/07/2020, 5:52 PM
(though I've been using import/export for years in SS via TypeScript)
d
dbarnett
01/07/2020, 6:01 PM
gotcha yah I had just seen native import/export & AMD support being both used in SuiteScript2.1/ESNext Doc on SuiteAnswers, but it was listed on "Future Directions" section so I guess they are working on it 🙂
s
stalbert
01/07/2020, 6:03 PM
ah, I hadn't seen that syntax anywhere so good to know you found something... I would love to see import/export suported - one less thing to transpile to 🙂