Skip to content

Commit

Permalink
Fix issue with latest nightly (see microsoft/TypeScript#4497)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrantly committed Sep 8, 2015
1 parent 98f2dd0 commit e461d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function ensureTypeScriptInstance(options: Options, loader: any): { instance?: T
if (compilerCompatible) log(`${motd} and ${configFilePath}`.green)
else log(`ts-loader: Using config file at ${configFilePath}`.green)

var configFile = compiler.readConfigFile(configFilePath);
var configFile = compiler.readConfigFile(configFilePath, (filePath) => fs.readFileSync(filePath, 'utf-8'));

if (configFile.error) {
var configFileError = formatErrors([configFile.error], compiler, {file: configFilePath })[0];
Expand Down

0 comments on commit e461d3b

Please sign in to comment.