-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES6 in distribution #737
Comments
This is easy for me to get around (by specifying v2.0.6), but I thought your team should know about the issue. |
@carpiediem Thanks a lot for the bug report, I will have a look into it also, can you share one example of this env, that would be helpful =) |
@carpiediem can you share what Webpack/bundle config are you using? |
https://cdn.jsdelivr.net/npm/clipboard@2.0.7/dist/clipboard.js There are arrow functions on the bundle of v2.0.7. It seems that was caused by upgrading to webpack 5 https://stackoverflow.com/questions/64620341/webpack-generates-arrow-function-in-es5 |
@ding-js thanks a lot this is what I was looking for, looks like we need to specify the target on the |
So I just took some time today to create a new release, I included the webpack changes I hope it helps to solve the issue, if not I will continue to push more fixes =) Please let me know if the issue is solved or not |
🐛 Bug Report
Expected Behaviour
Successful webpack build of our project
Actual Behaviour
SyntaxError: Unexpected token: punc ())
To Reproduce
The text was updated successfully, but these errors were encountered: