has anyone got the ES6 import/export syntax to wor...
# suitescript
d
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
I don't think native import/export is supported, since the module system is still AMD
(though I've been using import/export for years in SS via TypeScript)
d
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
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 🙂
a
Correct, working on it 🙂
👍 3