anandanand84 / technicalindicators

A javascript technical indicators written in typescript with pattern recognition right in the browser
MIT License
2.15k stars 557 forks source link

Another uglify issue #130

Closed ghost closed 6 years ago

ghost commented 6 years ago
ERROR in bundle.js from UglifyJs
Unexpected token: punc (;) [./node_modules/technicalindicators/lib/volume/ForceIndex.js:43,0][bundle.js:133310,4]

Once I remove the extra ; from this file, I get the error for another file. I guess that the lib files are actually converted from typescript? What's the best way to mitigate this error?

Thx.

anandanand84 commented 6 years ago

@andyperisho I would say it is an issue with whatever uglify library you are using. Since it is a valid javascript, they should handle the minification.

ghost commented 6 years ago

Which one are you using?

anandanand84 commented 6 years ago

I am using https://github.com/babel/minify

ghost commented 6 years ago

Ok, thx.