martyjs / marty

A Javascript library for state management in React applications
http://martyjs.org
MIT License
1.09k stars 76 forks source link

0.9.0 doesn't work as `window.Marty` #219

Closed geoffharcourt closed 9 years ago

geoffharcourt commented 9 years ago

Trying to use version 0.9.0 in the same manner I was using 0.8.x, loading it in the browser as window.Marty, not using require.js or UMD:

marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 Uncaught Error: Cannot find module 'react'
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 s
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 (anonymous function)
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:707 13.14
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 s
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 (anonymous function)
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:908 15.13
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 s
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 (anonymous function)
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:524 11.15
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 s
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 (anonymous function)
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:10129 /
marty.js.11marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 s
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:10163 (anonymous function)
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 a
marty-41512e41125f537c1863b5d4a0d8d6b7.js?body=1:1 (anonymous function)

React appears to be loaded at the browser console (and loads before Marty), but with this failure window.Marty is never defined.

jhollingworth commented 9 years ago

Hey, fixed in 0.9.1