Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
Created March 2, 2012 04:02
Show Gist options
  • Save ZeeAgency/1955536 to your computer and use it in GitHub Desktop.
Save ZeeAgency/1955536 to your computer and use it in GitHub Desktop.
RequireJS paths bug ?
// Configuration
require({
baseUrl: 'js',
paths: {
'vendor/jquery.ui.widget': 'plugins/jquery.ui.widget'
// also tried './vendor/jquery.ui.widget': 'plugins/jquery.ui.widget'
// and 'jquery.ui.widget': 'plugins/jquery.ui.widget'
}
});
// This won't work
define(['./vendor/jquery.ui.widget']);
// This will work
define(['vendor/jquery.ui.widget']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment