ionic-team / ionic-team/ionic-unit-testing-example
ts-loader's default config makes Webpack extremely slow in larger projects
- 主要语言
- TypeScript
- 星标
- 370
- 派生
- 144
- PR 合并指标
- 30 天内没有已合并 PR
描述
The nature of ts-loader makes it slower as the project's size increases.
https://github.com/TypeStrong/ts-loader#faster-builds
There are 2 options to make it fast:
- Use a separate process for typechecking, following `ts-loader`'s docs in the link above:
```
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
[ ... ]
module: {
rules: [{
test: /\.ts$/,
loaders: [{
loader: 'ts-loader',
options: {
transpileOnly: true
}
}, 'angular2-template-loader']
},
[ ... ].
plugins: [
new ForkTsCheckerWebpackPlugin(),
[ ... ]
```
- Use `awesome-typescript-loader`:
```
[ ... ]
module: {
rules: [{
test: /\.ts$/,
loaders: ['awesome-typescript-loader', 'angular2-template-loader']
},
[ ... ]
```
Any inputs on if these changes breaks anything?
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。