Closed dustingetz closed 9 years ago
@damassi do you know how to fix this quickly?
Sure, I can take care of it in about an hour, when I get into the office
Thanks. Here is my attempt, in which react-cursor throws "Uncaught Error: Cannot find module 'react/addons'"
https://github.com/dustingetz/react-cursor/compare/djg/fix-standalone
I think what I missed is that react needs to be shimmed
ah cool, so you got it?
either way, i'm about to commit a PR that swaps out browserify for webpack that simplifies things quite substantially and exports a UMD target.
Not resolved yet - yes, please for the PR - thank you so much!
np
Ok, @dustingetz -- be prepared for a big PR. I replaced browserify and grunt with webpack, cleaned up your test structure and karma configuration, cleaned up the example structure and moved each over to webpack-hot-reloader so that users can take advantage when experimenting, and generally just simplified overall. I'll write a more thorough overview in the PR, but don't want to surprise you when you get the request!
Hit me. You're the man Christopher, thanks!
On Tue, Aug 11, 2015 at 4:57 PM, Christopher Pappas < notifications@github.com> wrote:
Ok, @dustingetz https://github.com/dustingetz -- be prepared for a big PR. I replaced browserify and grunt with webpack, cleaned up your test structure and karma configuration, cleaned up the example structure and moved each over to webpack-hot-reloader so that users can take advantage when experimenting, and generally just simplified overall. I'll write a more thorough overview in the PR, but don't want to surprise you when you get the request!
— Reply to this email directly or view it on GitHub https://github.com/dustingetz/react-cursor/issues/50#issuecomment-130071468 .
The production file needs to detect when it is used from a script tag (instead of a module loader) and export
window.Cursor
global.