ethereumjs / ethereumjs-tx

Project is in active development and has been moved to the EthereumJS VM monorepo.
https://github.com/ethereumjs/ethereumjs-vm/tree/master/packages/tx
Mozilla Public License 2.0
781 stars 237 forks source link

uglifyjs can't uglify index.js #78

Closed dkent600 closed 7 years ago

dkent600 commented 7 years ago

When I run the webpack uglifyjs plugin on index.js, it fails:

ERROR in vendor.js from UglifyJs SyntaxError: Unexpected token: name (Transaction) [./~/ethereumjs-tx/index.js:36,0]

It doesn't like modules.export = class Transaction

Is there a work-around for this?

dkent600 commented 7 years ago

OK, I was using v1.2.5 and find that your latest version is emitting ES5 and is thus avoiding the problem. So I'm closing the issue.