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

Commit 4b66ab7

Browse files
committed
fix(*): node6 compat, refs #134
1 parent c56fe45 commit 4b66ab7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/instance.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ export function ensureInstance(webpack: IWebPack, options: ICompilerOptions, ins
182182
}
183183
}
184184

185-
options = rawToTsCompilerOptions(options, path.dirname(configFilePath), tsImpl);
185+
let projDir = configFilePath
186+
? path.dirname(configFilePath)
187+
: process.cwd();
188+
189+
options = rawToTsCompilerOptions(options, projDir, tsImpl);
186190

187191
_.defaults(options, {
188192
externals: [],

0 commit comments

Comments
 (0)