Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
llaske opened this issue Jun 30, 2020 · 4 comments
Open

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

llaske opened this issue Jun 30, 2020 · 4 comments
Labels

Comments

@llaske
Copy link
Owner

llaske commented Jun 30, 2020

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

@llaske
Copy link
Owner Author

llaske commented Jun 30, 2020

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
Copy link
Contributor

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

@llaske
Copy link
Owner Author

llaske commented Jun 30, 2020

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

@dhruvmisra
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants