Skip to content

Commit

Permalink
fix(tsconfig): stop pass rootDir option to TypeScript compiler.transp…
Browse files Browse the repository at this point in the history
…ileModule
  • Loading branch information
Brooooooklyn committed Aug 9, 2017
1 parent ce64afe commit bd77031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as loaderUtils from 'loader-utils';
import { getTypeScriptInstance } from './instances';
import { appendSuffixesIfMatch, arrify, formatErrors, hasOwnProperty, registerWebpackErrors } from './utils';
import * as constants from './constants';
import {
import {
AsyncCallback,
Compiler,
LoaderOptions,
Expand Down Expand Up @@ -204,7 +204,7 @@ function getTranspilationEmit(
const fileName = path.basename(filePath);

const { outputText, sourceMapText, diagnostics } = instance.compiler.transpileModule(contents, {
compilerOptions: instance.compilerOptions,
compilerOptions: { ...instance.compilerOptions, rootDir: undefined },
transformers: instance.transformers,
reportDiagnostics: true,
fileName,
Expand Down

0 comments on commit bd77031

Please sign in to comment.