Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 069e493

Browse files
committed
fix: don't concat paths that already absolute
1 parent 7f379a4 commit 069e493

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/instance.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,13 @@ function setupBabel(loaderConfig: LoaderConfig): any {
265265
function applyDefaults(configFilePath: string, compilerConfig: TsConfig, loaderConfig: LoaderConfig) {
266266
compilerConfig.typingOptions.exclude = compilerConfig.typingOptions.exclude || [];
267267
let configDirname = path.dirname(configFilePath);
268-
let initialFiles = compilerConfig.fileNames.map(f => path.join(configDirname, f));
268+
let initialFiles = compilerConfig.fileNames.map(f => {
269+
if (path.isAbsolute(f)) {
270+
return f;
271+
} else {
272+
return path.join(configDirname, f);
273+
}
274+
});
269275

270276
_.defaults(compilerConfig.options, {
271277
sourceMap: true,

0 commit comments

Comments
 (0)