Skip to main content
Known Participant
June 20, 2020
Question

Get Animate to Export ES5 JavaScript??

  • June 20, 2020
  • 2 replies
  • 472 views

Hi,

CreateJS is still based on ES5 - but Adobe Animate is now mixing in ES6 JavaScript into the index.js files it produces.


Our site still gets about 10% of IE11 visitors (about 100k school users a month) - who have no support for ES6. If adobe let us export ES5 code, it wold let all of our visitors user the content we create.

Can there not be an option to export only ES5 code?

This topic has been closed for replies.

2 replies

Known Participant
June 21, 2020

Confirmed that this has been fixed in 20.5.

 

If you can't upgrade, you can try to use this shim to get around the error...

if(!Map){var Map=function(t){if(this.clear(),t)for(var e=0;e<t.length;e++)this.set(t[e][0],t[e][1])};Map.prototype.clear=function(){this._map={},this._keys=[],this.size=0},Map.prototype.get=function(t){return this._map["map_"+t]},Map.prototype.set=function(t,e){return this._map["map_"+t]=e,this._keys.indexOf(t)<0&&this._keys.push(t),this.size=this._keys.length,this},Map.prototype.has=function(t){return this._keys.indexOf(t)>=0},Map.prototype.delete=function(t){var e=this._keys.indexOf(t);return!(e<0)&&(delete this._map["map_"+t],this._keys.splice(e,1),this.size=this._keys.length,!0)},Map.prototype.keys=function(){return{_keys:this._keys,_idx:0,next:function(){return this._idx<this._keys.length?{value:this._keys[this._idx++],done:!1}:{value:void 0,done:!0}}}},Map.prototype.forEach=function(t,e){for(var s=0;s<this._keys.length;s++)t.call(e,this._map["map_"+this._keys[s]],this._keys[s],this)}}

 

LeeBowAuthor
Known Participant
June 25, 2020

Hi Mohan,

 

Yes! I can confirm that 20.5 has fixed the issue!

 

it is great that Adobe is still supporting ES5 browsers like IE11 / older iPads / older devices.

 

great work!

Mohanaraj
Adobe Employee
Adobe Employee
June 21, 2020

Hi,

Are you using 20.5 version of Animate? We have fixed IE specific issue in 20.5 and would like to know whether you are still facing any issue.

 

Thanks!

Mohan