Closed
Bug 1201120
Opened 10 years ago
Closed 10 years ago
Write a build script that eliminates IIFEs for classes in the flash.* package.
Categories
(Firefox Graveyard :: Shumway, defect)
Firefox Graveyard
Shumway
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mbx, Assigned: till)
Details
Attachments
(1 file)
All classes in the flash package have their own .ts files. For the following code:
module Shumway.AVMX.AS.flash.net {
export class URLVariables { ... }
}
TSC emits JS code that looks something like:
(function (Shumway) {
var AVMX;
(function (AVMX) {
var AS;
(function (AS) {
var flash;
(function (flash) {
var net;
(function (net) {
var URLVariables = (function (_super) {
....
})(AS.ASObject);
net.URLVariables = URLVariables;
})(net = flash.net || (flash.net = {}));
})(flash = AS.flash || (AS.flash = {}));
})(AS = AVMX.AS || (AVMX.AS = {}));
})(AVMX = Shumway.AVMX || (Shumway.AVMX = {}));
})(Shumway || (Shumway = {}));
One way to solve this problem would be to merge all classes in a package in a single .ts file. Another way would be to write a post processing script that eliminates this cruft.
Assignee | ||
Comment 1•10 years ago
|
||
Fixed by running a post-processing script that eliminates 1117 closures in build/bundles/shumway.player.js and 77 in build/bundles/shumway.gfx.js.
Assignee: nobody → till
Status: NEW → ASSIGNED
Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•