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

Commit 230780a

Browse files
committed
fix: minor paths-plugin fix
1 parent f931770 commit 230780a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/host.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as ts from "typescript";
21
import * as fs from 'fs';
32
import * as util from 'util';
43
import * as path from 'path';

src/paths-plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class PathsPlugin implements ResolverPlugin {
7171
this.baseUrl = this.options.baseUrl;
7272
this.absoluteBaseUrl = path.resolve(
7373
path.dirname(this.configFilePath),
74-
this.baseUrl
74+
this.baseUrl || '.'
7575
);
7676

7777
this.mappings = [];

0 commit comments

Comments
 (0)