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

Commit 5bd1c93

Browse files
committed
feat(index): update dependencies
BREAKING CHANGE: uses awesome-typescript-loader 3.0
1 parent d67a6e7 commit 5bd1c93

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@
3030
"homepage": "https://github.com/easy-webpack/config-typescript#readme",
3131
"devDependencies": {
3232
"@types/debug": "0.0.29",
33-
"@types/lodash": "^4.14.38",
33+
"@types/lodash": "^4.14.43",
3434
"@types/node": "^6.0.46",
35-
"@types/source-map": "^0.1.29",
36-
"@types/webpack": "^1.12.35",
37-
"ava": "^0.16.0",
35+
"@types/source-map": "^0.5.0",
36+
"@types/webpack": "^2.0.0",
37+
"ava": "^0.17.0",
3838
"greenkeeper-postpublish": "^1.0.1",
3939
"rimraf": "^2.5.4",
40-
"semantic-release": "^4.3.5",
40+
"semantic-release": "^6.3.2",
4141
"ts-node": "^1.7.0",
42-
"tslint": "^3.15.1",
43-
"tslint-config-standard": "^1.5.0",
44-
"typescript": "^2.0.8"
42+
"tslint": "^4.0.2",
43+
"tslint-config-standard": "^2.0.0",
44+
"typescript": "^2.1.4"
4545
},
4646
"dependencies": {
47-
"awesome-typescript-loader": "^2.2.4"
47+
"awesome-typescript-loader": "^3.0.0-beta.10"
4848
},
4949
"peerDependencies": {
5050
"@easy-webpack/core": "*"

src/index.ts

Lines changed: 3 additions & 13 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 {ForkCheckerPlugin, TsConfigPathsPlugin} from 'awesome-typescript-loader'
3+
import {TsConfigPathsPlugin} from 'awesome-typescript-loader'
44

55
/**
66
* Typescript loader support for .ts
@@ -11,13 +11,10 @@ export = function typescript({options = undefined, exclude = null} = {}) {
1111
const loader = {
1212
test: /\.tsx?$/,
1313
loader: 'awesome-typescript-loader',
14-
exclude: exclude || (this.metadata.root ? [path.join(this.metadata.root, 'node_modules')] : [])
14+
exclude: exclude || (this.metadata.root ? [path.join(this.metadata.root, 'node_modules')] : []),
15+
options
1516
} as any
1617

17-
if (options) {
18-
loader.query = options
19-
}
20-
2118
return {
2219
resolve: {
2320
extensions: get(this, 'resolve.extensions', ['.js']).concat(['.ts'])
@@ -26,13 +23,6 @@ export = function typescript({options = undefined, exclude = null} = {}) {
2623
rules: get(this, 'module.rules', []).concat([loader])
2724
},
2825
plugins: [
29-
/*
30-
* Plugin: ForkCheckerPlugin
31-
* Description: Do type checking in a separate process, so webpack don't need to wait.
32-
*
33-
* See: https://github.com/s-panferov/awesome-typescript-loader#forkchecker-boolean-defaultfalse
34-
*/
35-
new ForkCheckerPlugin(),
3626
new TsConfigPathsPlugin(options)
3727
].concat(get(this, 'plugins', []))
3828
}

0 commit comments

Comments
 (0)