I have a durandal project and I'd like to try and improve the way I work with modules in my project.
I have a configuration below:
requirejs.config({
paths: {
'text': '../Scripts/text',
'durandal': '../Scripts/durandal',
'plugins': '../Scripts/durandal/plugins',
'transitions': '../Scripts/durandal/transitions',
'shared': 'shared'
}
});
I have added the utils
entry. The utils folder has the following structure:
main.js
+App
+shared
-utils.js
-globals.js
...
So I was hoping in my define callback to be able to address the utils module as follows:
define(['shared/utils'], function(utils) {
//do stuff
});
Essentially I'd like this to work inline with the durandal callbacks.
I note a call to:
utils.js and not shared/utils.js in the web inspector.
Thanks