-
Notifications
You must be signed in to change notification settings - Fork 421
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
Add ReactViewModel #3319
Add ReactViewModel #3319
Conversation
Current test failures are fixed in canjs/can-stache-converters#34 |
163bf6d
to
ec65f3f
Compare
2e02c1b
to
cad2ca0
Compare
568b8b4
to
58e86d5
Compare
cad2ca0
to
28b6473
Compare
bd2e5a2
to
3bae15d
Compare
Are you talking about what is loaded by test/index.html? That loads can.all.js, which is a global exported build. As far as I remember the global shim never had |
I don't understand how this is supposed to work. There are several libs being ignored in the build: https://github.com/canjs/canjs/blob/master/build.js#L6-L7 . but there are no corresponding script tags for those libs in the text HTML pages. So I don't understand how those libs are not throwing. |
Digging into it more it looks like, in the example of can-stream-kefir, that kefir is excluded from the build and is not on the window, but because can-stream-kefir doesn't care in the module body if |
So I think we need to either include react and all of its dependencies into the build or exclude it, and react-view-model and can-react-component. For now I'm not to exclude those. |
1029884
to
b6d73be
Compare
Yeah, we should do it like kefir and jQuery ... not include them in the build, while allowing the build to work without them (at least the modules that don't depend on them).
I know for jQuery, we do this conditionally a few places. We test that the jQuery module actually provided a value.
…Sent from my iPhone
On Jul 5, 2017, at 7:13 AM, Matthew Phillips ***@***.***> wrote:
So I think we need to either include react and all of its dependencies into the build or exclude it, and react-view-model and can-react-component. For now I'm not to exclude those.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I added the shrinkwrapped dependencies, modified the docs glob, and incorporated the tests.