0

I saw a pre-launch FAQ on the Adobe Tech Blog that says XD plugins will "be written in modern JavaScript", but what does that mean exactly?

  • Can I use ES5?
  • What about ES6/ES2015 features?
  • Does it support Adobe ExtendScript?
Ash Ryan Arnwine
  • 1,471
  • 1
  • 11
  • 27

1 Answers1

2

Adobe XD Extensibility is built on top of a Modern JavaScript engine, which means that it understands both older versions of JavaScript (ES5) and the newer variants (ES6 / ES2015, etc.). ExtendScript is not supported for Adobe XD plugins.

Some useful features are listed below:

  • ES5
    • Getters / Setters
    • Array#map, Array#foreach, etc.
  • ES6/ES2015+
    • Promises
    • Template literals
    • Classes
    • const and let (block-scoped variables)
    • Destructuring, default and named parameters
    • Symbols
    • Iterators
    • async and await

That said, if you're not familiar with ES2015+, you're not required to use it.

Kerri Shotts
  • 2,372
  • 1
  • 17
  • 19