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

relative dependencies no longer work in 0.1 #28

Closed
jrburke opened this issue Jun 1, 2012 · 0 comments
Closed

relative dependencies no longer work in 0.1 #28

jrburke opened this issue Jun 1, 2012 · 0 comments
Milestone

Comments

@jrburke
Copy link
Member

jrburke commented Jun 1, 2012

Reported by Jasper Palfree on the requirejs mailing ilst.

Fiddle:
http://jsfiddle.net/wellcaffeinated/9knfL/1/

Code snippet:

define('fu/a', [], function(){
    log('factory for a');
});

define('foo/bar/c',['../../fu/a'], function(){
    log('factory for c');
});

define('foo/b',['./bar/c'], function(){
    log('factory for b');
});

define('main', ['./foo/b'], function(){
    log('factory for main');
});

require(['main'], function(){
    log('factory for main');
});
@jrburke jrburke closed this as completed in ce262cf Jun 1, 2012
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

1 participant