Skip to content

Commit 2822b33

Browse files
committed
Fixes requirejs#130, only resolve paths after all config has been merged.
1 parent 87331c4 commit 2822b33

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

build/jslib/build.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -683,16 +683,6 @@ function (lang, logger, file, parse, optimize, pragma,
683683
}
684684
}
685685

686-
//Do not allow URLs for paths resources.
687-
if (config.paths) {
688-
for (prop in config.paths) {
689-
if (config.paths.hasOwnProperty(prop)) {
690-
config.paths[prop] = build.makeAbsPath(config.paths[prop],
691-
(config.baseUrl || absFilePath));
692-
}
693-
}
694-
}
695-
696686
build.makeAbsObject(["out", "cssIn"], config, absFilePath);
697687
build.makeAbsObject(["startFile", "endFile"], config.wrap, absFilePath);
698688
};
@@ -827,6 +817,12 @@ function (lang, logger, file, parse, optimize, pragma,
827817
//args should take precedence over build file values.
828818
mixConfig(config, cfg);
829819

820+
//Fix paths to full paths so that they can be adjusted consistently
821+
//lately to be in the output area.
822+
lang.eachProp(config.paths, function (value, prop) {
823+
config.paths[prop] = build.makeAbsPath(value, config.baseUrl);
824+
});
825+
830826
//Set final output dir
831827
if (config.hasOwnProperty("baseUrl")) {
832828
if (config.appDir) {

0 commit comments

Comments
 (0)