llaske / sugarizer

Sugarizer is a web implementation of the Sugar platform to run on any device or browser
https://sugarizer.org
Apache License 2.0
199 stars 424 forks source link

Is it possible to use JavaScript ES6 syntax in activities ? #826

Open llaske opened 4 years ago

llaske commented 4 years ago

Previously, JavaScript ES6 syntax was prohibited in Sugarizer and in Sugarizer activities. Is it still the case?

llaske commented 4 years ago

After a bunch of testing on all platforms (find here the test activity) and a fix on minify process (see here), the ES6 syntax is now officially supported in source code for Sugarizer and for activities.

The only exception is the ES6 modules feature that is not supported on Chrome on file:/// - and fail also for the same reason on Electron (Linux/MacOS/Windows) and Android.

dhruvmisra commented 4 years ago

During our discussion on the Knowledge Activity pack, you mentioned about some incompatibilities with iOS as well. Do those still exist?

llaske commented 4 years ago

@dhruvmisra No, I've tested on all platforms so it works also on iOS.

dhruvmisra commented 4 years ago

Wonderful! Finally we can use Promises. 😍 It's great milestone for Sugarizer.