What is the best way to include the IIFE javascript output file published from Adobe Animate in Ionic? I tried importing the resulting file like so:
import '../../scripts/animate-output.js'
But this results in the error:
Uncaught TypeError: cjs.MovieClip is not a constructor
Peeking into the animate-output.js file, I see it is an instantly-invoked function expression that starts with:
and ends with:
})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;
What is the best way to include the IIFE javascript output file published from Adobe Animate in Ionic? I tried importing the resulting file like so:
But this results in the error:
Peeking into the animate-output.js file, I see it is an instantly-invoked function expression that starts with:
and ends with: