Skip to content
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

Enable support for Mozilla Addons #2030

Merged
merged 1 commit into from
Oct 11, 2016
Merged

Conversation

qzb
Copy link
Contributor

@qzb qzb commented Oct 11, 2016

Redux seems to be great solution for managing state of browser extensions. Unfortunately it doesn't work properly with Firefox addons, because it requires global process object which is not available inside addon environment. This applies to both web-extensions and jetpack-based addons. In case of web-extensions it is possible make polyfill for process object, but it is not possible with jetpack (at least without using custom modules loader).

I've fixed this issue by checking if process object exists before using it. There was also issue with one of dependencies - symbol-observable - but it was fixed yesterday.

@timdorr
Copy link
Member

timdorr commented Oct 11, 2016

Ah, that's a good point. I think it's less about supporting the FF addon environment and more about supporting browser environments without assuming polyfills are provided. Good call!

@timdorr timdorr merged commit 0139a96 into reduxjs:master Oct 11, 2016
@gaearon
Copy link
Contributor

gaearon commented Feb 16, 2017

I'm confused by this. Does this still strip out the DEV code in production? Is Uglify smart enough to figure out what's going on here?

@gaearon
Copy link
Contributor

gaearon commented Feb 16, 2017

Please see #2244.

@timdorr timdorr mentioned this pull request Mar 8, 2017
seantcoyote pushed a commit to seantcoyote/redux that referenced this pull request Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants