From 43eec1ed298ced3b08b9fbdccef30619cb86f672 Mon Sep 17 00:00:00 2001 From: 5ebastianMeier Date: Fri, 18 Mar 2016 14:52:18 +0100 Subject: [PATCH] Remove confusing path replacement --- lib/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/index.js b/lib/index.js index afaec5e..f2a7625 100644 --- a/lib/index.js +++ b/lib/index.js @@ -62,11 +62,6 @@ function getRefSchema(refVal, refType, parent, options, state, fn) { dirname = ''; } - if (dirname) { - oldBasePath = state.cwd; - var newBasePath = path.resolve(state.cwd, dirname); - options.baseFolder = state.cwd = newBasePath; - } } derefSchema(loaderValue, options, state, function (err, derefedValue) { @@ -414,4 +409,4 @@ function deref(schema, options, fn) { deref.prototype.getRefPathValue = utils.getRefPathValue; -module.exports = deref; \ No newline at end of file +module.exports = deref;