Closed jianbingfang closed 4 years ago
Interesting! Off hand, I have no idea why that would be happening, but I'll take a look. I'm tentatively planning to update publication to use @pika/pack
, which would build a prebundled version, and maybe that will also help address (or at least ensure) that these kinds of things don't pop up unexpectedly in the future.
Ok, so a... checks watch.. year later. Uglify seems to just not support a lot of modern javascript syntax. That specific file is using an arrow function... changing it to a regular function fixes it for that file, but it fails with other files that use things like classes will also fail.
What you're going to want to do is run things through babel before uglify gets to them, so it gets the es5 it expects.
Hi, I want use this package in browser side, but it seems have some problems with uglify plugin:
Currently I have to disable the uglify.