Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changelog

## v0.9.x - not released yet
## v0.9.4

- [Make logging to stderr or stdout configurable; introduce logging levels](https://github.com/TypeStrong/ts-loader/pull/313) [#214]
- [Fix regression that broke hot module replacement](https://github.com/TypeStrong/ts-loader/pull/322) [#321]
- [Make logging to stderr or stdout configurable; introduce logging levels](https://github.com/TypeStrong/ts-loader/pull/313) [#214] - thanks @ThYpHo0n
- [Fix regression that broke hot module replacement](https://github.com/TypeStrong/ts-loader/pull/322) [#321] - thanks @dopare

## v0.9.3

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Tutorials and examples can be [found here](https://github.com/TypeStrong/ts-load

ts-loader supports the latest and greatest version of TypeScript right back to v1.6. (Including the [nightly build](http://blogs.msdn.com/b/typescript/archive/2015/07/27/introducing-typescript-nightlies.aspx).)

A full test suite runs against the following versions of TypeScript each night (and on each pull request):
A full test suite runs each night (and on each pull request). It runs both on Linux ([Travis](https://travis-ci.org/)) and Windows ([AppVeyor](https://www.appveyor.com/)), testing ts-loader against the following versions of TypeScript:
- TypeScript 2.0
- TypeScript 1.8
- TypeScript 1.7
Expand All @@ -24,7 +24,7 @@ A full test suite runs against the following versions of TypeScript each night (
and also:
- TypeScript@next (because we want to use it as much as you do)

If you become aware of issues not caught by the test suite then please let us know.
If you become aware of issues not caught by the test suite then please let us know. Better yet, write a test and submit it in a PR!

### Babel

Expand Down
9 changes: 2 additions & 7 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ function findConfigFile(compiler: typeof typescript, searchPath: string, configF
// or returns the existing one. Multiple instances are possible by using the
// `instance` property.
function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { instance?: TSInstance, error?: WebpackError } {

function log(...messages: string[]): void {
logToConsole(stdoutConsole, messages);
logToConsole(loaderOptions.logInfoToStdOut ? stdoutConsole : stderrConsole, messages);
}

function logToConsole(logConsole:any, messages: string[]): void {
Expand All @@ -169,11 +168,7 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): {

function logInfo(...messages: string[]): void {
if (LogLevel[loaderOptions.logLevel] <= LogLevel.INFO) {
if(loaderOptions.logInfoToStdOut) {
logToConsole(stdoutConsole, messages);
} else {
logToConsole(stderrConsole, messages);
}
logToConsole(loaderOptions.logInfoToStdOut ? stdoutConsole : stderrConsole, messages);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-loader",
"version": "0.9.3",
"version": "0.9.4",
"description": "TypeScript loader for webpack",
"main": "index.js",
"scripts": {
Expand Down