-
Notifications
You must be signed in to change notification settings - Fork 422
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
Make RequireJS work with can.import #1456
Comments
Looks like there is already code: https://github.com/bitovi/canjs/pull/1396/files#diff-95ad04d772620344cfa50f85ba7adb64R96 I guess we just need a test to verify it is working? |
It doesn't work. Sent from my iPhone
|
Interesting, is there an existing demo page or something to test with? Otherwise I'll create one. |
There's a test page for steal's integration. Sent from my iPhone
|
One issue is that we are importing |
I really don't like doing an amd check in autorender but can't think of a better way. |
Yeah, this will be gone in 3.0 Sent from my iPhone
|
This fixes can.import to work with RequireJS. 2 things needed: 1. can.import checks for define && define.amd instead of window.require (window.require.amd doesn't exist). 2. can.autorender has to pass in the correct moduleName for AMD. Fixes canjs#1456
Closed via #1460 |
No description provided.
The text was updated successfully, but these errors were encountered: