Skip to content
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

Exoskeleton + Browserify #13

Closed
anthonyhastings opened this issue Mar 26, 2015 · 5 comments
Closed

Exoskeleton + Browserify #13

anthonyhastings opened this issue Mar 26, 2015 · 5 comments

Comments

@anthonyhastings
Copy link

I see this issue has come up a few times and in the tickets logged there's never really been a resolution. I've followed the instructions here (https://github.com/paulmillr/exoskeleton/wiki/Exoskeleton-without-jQuery) regarding how it should be handled from a Browserify / CommonJS perspective but I constantly get errors even when using aliasify.

The problem seems to be that Aliasify is not transforming anything in node_modules that we call as dependencies, so the reference to backbone inside your library never seems to get rewritten. The "recipe" in the link posted above, have you verified that it works and have a code example that I could pull?

I've logged a ticket with Aliasify:
benbria/aliasify#25

@akre54
Copy link
Owner

akre54 commented Mar 26, 2015

Looks like the global option solves this issue, right?

@anthonyhastings
Copy link
Author

Seems to yes, perhaps your code snippet in the link of my original post could be updated. Also:

Backbone.View = require('backbone.nativeview');

Doesn't seem to work because it returns a blank object. The solution that worked for me was:

require('backbone.nativeview');
Backbone.View = Backbone.NativeView;

@akre54
Copy link
Owner

akre54 commented Mar 26, 2015

Link me? Or feel free to open a pull / update the wiki

On Thu, Mar 26, 2015, 09:03 Anthony Hastings [email protected]
wrote:

Closed #13 #13.


Reply to this email directly or view it on GitHub
#13 (comment).

@anthonyhastings
Copy link
Author

@akre54
Copy link
Owner

akre54 commented Mar 26, 2015

I don't know about the "problematic" wording but otherwise thanks. Next
step is to add webpack instructions.

On Thu, Mar 26, 2015, 09:48 Anthony Hastings [email protected]
wrote:

Unsure how I had access to the Exoskeleton wiki, but changes can be seen
here:

https://github.com/paulmillr/exoskeleton/wiki/Exoskeleton-without-jQuery/_compare/3f3a04b492d710b7d1178d49a05c64ed17ecdc67%5E...3f3a04b492d710b7d1178d49a05c64ed17ecdc67


Reply to this email directly or view it on GitHub
#13 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants