benmerckx / genes

Generates split ES6 modules and Typescript definitions from Haxe modules.
44 stars 8 forks source link

HxOverrides broken #16

Closed kevinresol closed 4 years ago

kevinresol commented 4 years ago

With nightly haxe the following is generated

class HxOverrides {
    ...
}

((typeof(performance) != "undefined") ? typeof(performance.now) == "function" : false) ? HxOverrides.now = performance.now.bind(performance) : null

and somehow webpack thinks that is a function call, i.e. class HxOverrides {...}(...), resulting in TypeError: Cannot call a class as a function

kevinresol commented 4 years ago

Inserting a semicolon after } fixes it