Change how lodash-modularie build path is resolved.

This commit is contained in:
John-David Dalton
2013-09-02 00:50:07 -05:00
parent c8a4e40bcf
commit cd808fb5a5
3 changed files with 20 additions and 22 deletions

View File

@@ -64,7 +64,7 @@
}
// load Lo-Dash again to overwrite the existing `_` value
document.write('<script src="' + ui.buildPath + '"><\/script>');
document.write('<script src="' + (ui.isModularize ? '../lodash.js' : ui.buildPath) + '"><\/script>');
// load test.js if not using require.js
document.write(ui.urlParams.loader != 'none'
@@ -91,12 +91,9 @@
var reBasename = /[\w.-]+$/,
basePath = ('//' + location.host + location.pathname).replace(/\btest\/$/, ''),
modulePath = ui.buildPath.replace(/\.js$/, ''),
locationPath = modulePath.replace(reBasename, ''),
moduleMain = modulePath.match(reBasename)[0];
var locationPath = /modularize/.test(ui.urlParams.build)
? '../modularize'
: modulePath.replace(reBasename, '');
QUnit.config.autostart = false;
// load Lo-Dash as a module