zsajjad / react-facebook-pixel

React JS wrapper for Facebook's Pixel
MIT License
233 stars 86 forks source link

added transpiled lib generation with prepare script (fixes #65) #72

Open dlong500 opened 3 years ago

dlong500 commented 3 years ago

This completely fixes the remaining issue in #65 and also allows developers using bundlers to take advantage of access to non-minified code (see details below).

louisrli commented 3 years ago

Does this need to be imported in a certain way to resolve #65? I've installed it via Github (through yarn) but I'm still running into the window error.

dlong500 commented 3 years ago

Does this need to be imported in a certain way to resolve #65? I've installed it via Github (through yarn) but I'm still running into the window error.

Are you sure you installed the code directly from this pull request? This PR hasn't been merged into the main project, so unless you are specifically using the code in this PR you won't see my changes. I've never actually tried using yarn to install from a specific pull request so I'm not sure how that would work.

Regarding how to import the module, my fixes only deal with transpiling and build artifacts--no actual module code was changed. The examples in the README should work fine. It will work with a bundler like webpack using an import/require or you can use the UMD build in dist without any bundling.

I'm hoping @zsajjad will have time to review and merge this PR soon.

dlong500 commented 3 years ago

@zsajjad You've probably been tied up with other things, but can you take a look at this PR? It would be nice to get a new release cut.

dlong500 commented 3 years ago

@zsajjad Pinging you again to see if we can please get this PR merged sometime soon.

chuma9615 commented 3 years ago

@zsajjad I'll really love to see this feature implemented! Please merge if you have time.

bephrem1 commented 3 years ago

Looking for this solution, would appreciate a merge & publish

dylman123 commented 3 years ago

This issue also affected me. Hopefully @zsajjad will merge soon :)

danwetherald commented 3 years ago

Its a shame this is not simply merged in, what is the hold up?

WBialekMerixStudio commented 3 years ago

What is the status of this PR?

dlong500 commented 2 years ago

@zsajjad I'd really like to get this PR merged as there are clearly a number of people that are waiting. I'm sure you have a lot going on but it does appear you still have activity on a weekly basis with various Github projects. If we could get this one PR merged that would prevent having to fork the project (and I don't really want to be maintaining a fork). Can you let us know your plans for this library moving forward?

danwetherald commented 2 years ago

If @zsajjad is not planning on maintaining this anymore, I am happy to fork if need be as I have already merged this into our fork.

tmbtech commented 2 years ago

If @zsajjad is not planning on maintaining this anymore, I am happy to fork if need be as I have already merged this into our fork.

Hey @dan003400 curious if you decided to fork the repo - I was thinking about doing the same or maybe we can work together and create a new version

danwetherald commented 2 years ago

Hey @tmbtech - yes we have forked the repo here and it will remain to be maintained.

https://github.com/bettercart/react-facebook-pixel

Let me know if you need anything merged.

tmbtech commented 2 years ago

Awesome! thank you!

dlong500 commented 2 years ago

@dan003400 I'm a bit confused. In looking at the source on your fork I see other changes but I don't see this particular PR merged. The main field still appears to be pointing to the UMD minified build. Maybe you worked around the issues I was having some other way?