react-modal icon indicating copy to clipboard operation
react-modal copied to clipboard

Latest release doesn't work on UglifyJs

Open 3LOK opened this issue 9 years ago • 8 comments

Summary:

You've released a new version of react-modal a couple of hours ago.

As you can see here, you forgot a 'function' keyword for non ES6 class component, and UglifyJs doesn't like this a single bit...

(see definition of removePortal with missing function compared to reset of the functions there).

Steps to reproduce:

  1. Try to uglifyjs this project.

Expected behavior:

For UglifyJs to succeed. It now doesn't.

Additional notes:

Thanks!!!

3LOK avatar Mar 02 '17 05:03 3LOK

And this line in ModalPortal.js too.

gengjiawen avatar Mar 02 '17 09:03 gengjiawen

Can you please fix this ASAP? This is breaking tones of our builds unfortunately. Can you provide ETA and let me know please? Thank you! CC: @diasbruno @claydiffrient

Update. I see https://github.com/reactjs/react-modal/pull/337 so I'm quite relaxed now. Thank you for doing that! 🎩

damtur avatar Mar 02 '17 10:03 damtur

Backporting problems. It happens sometimes. :)

diasbruno avatar Mar 02 '17 10:03 diasbruno

@diasbruno Do we have a high level ETA on the fix branch going out?

glitch100 avatar Mar 02 '17 13:03 glitch100

having the same issue as we use react-bootstrap-table which has react-modal as a dependancy. Have had to manually add react-modal and hardcode the version to 1.6.5 to get the build to work.

bencrinkle avatar Mar 02 '17 13:03 bencrinkle

v1.7.1 was released.

diasbruno avatar Mar 02 '17 14:03 diasbruno

v1.7.1 fixed the problem

nancruz avatar Mar 03 '17 10:03 nancruz

Going ahead and closing this since 1.7.1 has been reported to have indeed fixed the problem.

claydiffrient avatar Mar 05 '17 06:03 claydiffrient