Treat all filenames as absolute paths. (#8044)

This commit is contained in:
Logan Smyth
2018-05-24 20:56:19 -07:00
committed by GitHub
parent 98ff2ce877
commit 53e4d74ebe
22 changed files with 69 additions and 45 deletions

View File

@@ -60,9 +60,7 @@ export default function loadPrivatePartialConfig(
options.cwd = context.cwd;
options.root = context.root;
options.filename =
typeof context.filename === "string"
? path.relative(context.cwd, context.filename)
: undefined;
typeof context.filename === "string" ? context.filename : undefined;
options.plugins = configChain.plugins.map(descriptor =>
createItemFromDescriptor(descriptor),