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

Commit

Permalink
fix: don't concat paths that already absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
s-panferov committed Aug 15, 2016
1 parent 7f379a4 commit 069e493
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,13 @@ function setupBabel(loaderConfig: LoaderConfig): any {
function applyDefaults(configFilePath: string, compilerConfig: TsConfig, loaderConfig: LoaderConfig) {
compilerConfig.typingOptions.exclude = compilerConfig.typingOptions.exclude || [];
let configDirname = path.dirname(configFilePath);
let initialFiles = compilerConfig.fileNames.map(f => path.join(configDirname, f));
let initialFiles = compilerConfig.fileNames.map(f => {
if (path.isAbsolute(f)) {
return f;
} else {
return path.join(configDirname, f);
}
});

_.defaults(compilerConfig.options, {
sourceMap: true,
Expand Down

1 comment on commit 069e493

@fgambino
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix

Please sign in to comment.