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

Change the context to webpack provided one #442

Merged
merged 4 commits into from
Jun 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface Loader {
emitFile: (fileName: string, text: string) => void;
emitWarning: (msg: string) => void;
emitError: (msg: string) => void;
context: string;
options: {
ts?: LoaderConfig
};
Expand Down Expand Up @@ -87,7 +88,7 @@ export function ensureInstance(
}

const watching = isWatching(rootCompiler);
const context = process.cwd();
const context = webpack.context || process.cwd ();

let compilerInfo = setupTs(query.compiler);
let { tsImpl } = compilerInfo;
Expand Down