I am seeing module code execute twice when I curl from both a standard path and a config-mapped 'shortcut' path. Consider the following contrived example:
var curlConfig = {
paths: {
shortcut: 'sub/folder/module'
}
};
curl(curlConfig, ['sub/folder/module', 'shortcut'], function() {
// You will see module.js run twice
});
Result: you will see the console output twice.
Additional Notes:
I only see one network request for module.js
Using relative paths (ie ./module.js) will not produce this same behavior.
I am seeing module code execute twice when I curl from both a standard path and a config-mapped 'shortcut' path. Consider the following contrived example:
In
sub/folder/module.js
In
index.html
or similarResult: you will see the
console
output twice.Additional Notes:
module.js
./module.js
) will not produce this same behavior.Is this a dup of https://github.com/cujojs/curl/issues/110?