-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
use of Object.defineProperty breaks ie8 #133
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
Comments
And i now see that you guys have written this with es6 and that i was simply reading the deployed compiled files |
How can we do that?
Just a method that returns a class, see the source. |
Ya i was reading the source like an idiot of my local copy of the files. It's quite easy to follow thanks. here is our babel loader: I believe that es6.classes and es6.properties.computed both protect against object.defineProperty. We're a company that sells software to police forces and hence has to support ie8 and it's the absolute worst :(. |
Actually i believe the specific babel loose mode for this case is es6.modules as explained here. |
Can you confirm that compiling React Redux with |
yup! checkin now. |
Going to work more on this today. The .babelrc is already using loose mode all, the real kicker is uses of static class properties. Going to make a PR, but finding that a bunch of other libraries in the redux ecosystem also use similar stuff, so having trouble getting a full integration test on ie8. Will update as I find out more! |
I've forked and cloned the repo locally, have modified the code to protect against Object.defineProperty, but when attempting to test it using npm link am running into this issue. Essentially because react-redux has a (dev?) dependency on react 0.14-rc1, but my application still depends on react 0.13, both are loaded in. So my application is getting |
Out in 3.1.0. |
use of Object.defineProperty breaks ie8 again. |
Fixed. |
Hi all,
I understand completely that react-redux may not intend to support ie8 and that's totally fine. However, I'm curious if I could be given a little more insight into how the
createProvider
method works, especially regarding the call to_createClass
so that I might find a workaround. As mentioned here callingObject.defineProperty
breaks ie8. Perhaps there is a way to write some of the contents ofcreateProvider
in a more es6 heavy way? This might allow me to use my own ie8 compatible babel settings to avoid use ofdefineProperty
. Any and all help is greatly appreciated!The text was updated successfully, but these errors were encountered: