Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit b74a329

Browse files
committed
fix(index): use CheckerPlugin
1 parent 5bd1c93 commit b74a329

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"typescript": "^2.1.4"
4545
},
4646
"dependencies": {
47-
"awesome-typescript-loader": "^3.0.0-beta.10"
47+
"awesome-typescript-loader": "^3.0.0-beta.13"
4848
},
4949
"peerDependencies": {
5050
"@easy-webpack/core": "*"

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'
22
import * as path from 'path'
3-
import {TsConfigPathsPlugin} from 'awesome-typescript-loader'
3+
import {TsConfigPathsPlugin, CheckerPlugin} from 'awesome-typescript-loader'
44

55
/**
66
* Typescript loader support for .ts
@@ -23,7 +23,8 @@ export = function typescript({options = undefined, exclude = null} = {}) {
2323
rules: get(this, 'module.rules', []).concat([loader])
2424
},
2525
plugins: [
26-
new TsConfigPathsPlugin(options)
26+
new TsConfigPathsPlugin(options),
27+
new CheckerPlugin()
2728
].concat(get(this, 'plugins', []))
2829
}
2930
}

0 commit comments

Comments
 (0)