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

Commit

Permalink
feat(*): add tsconfig support and return ts-jsx-loader back
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Panferov committed May 30, 2015
1 parent a0d2092 commit c03c73e
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 42 deletions.
44 changes: 25 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,28 @@ module.exports = {

After that, you would be able to build TypeScript files with webpack.

## Options
## TS defaults

### target
* target = 'es5'
* module = 'commonjs'

Specify the TypeScript output target.
## tsconfig.json

- ES3
- **ES5 (default)**
- ES6
You can use .tsconfig.json file to configure your compiler and loader:

### module

Specify the type of modules that TypeScript emits.

- **CommonJS (default)**
- AMD

### sourceMap *(boolean) (default=false)*

Specify whether or not TypeScript emits source maps.

### noImplicitAny *(boolean) (default=false)*
```
{
"compilerOptions": {
"noImplicitAny": true,
"removeComments": true,
},
"awesomeTypescriptLoaderOptions": {
/* ... */
}
}
```

Specify whether or not TypeScript will allow inferring the `any` type.
## Loader Options

### compiler *(string) (default='typescript')*

Expand All @@ -96,6 +94,14 @@ Allows to use several TypeScript compilers with different settings in one app. J

Collect files dependency graph and re-emit all dependent files along with changed file.

### tsconfig *(string) (default='tsconfig.json')*

Specify path to a TS config file. Useful when you have multiple config files. This setting is useless *inside* TS config file.

### useWebpackText *(string) (default=false)*

Use this setting to force loader to use webpack's way to load files. Useful only with ts-jsx-loader. Builds may become slower.

## Using with --watch or webpack-dev-server

This loader has support of both `--watch` and `webpack-dev-server` modes. It handles file dependencies
Expand Down
6 changes: 3 additions & 3 deletions dist/deps.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/helpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/helpers.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c03c73e

Please sign in to comment.