Skip to content

Commit 1cb94b6

Browse files
committed
improve
1 parent f776d23 commit 1cb94b6

File tree

3 files changed

+18
-22
lines changed

3 files changed

+18
-22
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"demo": "webpack-dev-server --open"
44
},
55
"dependencies": {
6-
"react": "16.8.4",
7-
"react-dom": "16.8.4"
6+
"react": "16.9.0",
7+
"react-dom": "16.9.0"
88
},
99
"devDependencies": {
10-
"@types/node": "11.11.3",
11-
"@types/react": "16.8.8",
12-
"@types/react-dom": "16.8.2",
13-
"css-loader": "2.1.1",
10+
"@types/node": "12.7.2",
11+
"@types/react": "16.9.2",
12+
"@types/react-dom": "16.9.0",
13+
"css-loader": "3.2.0",
1414
"html-webpack-plugin": "3.2.0",
1515
"source-map-loader": "0.2.4",
16-
"style-loader": "0.23.1",
17-
"ts-loader": "5.3.3",
18-
"typescript": "3.3.3333",
19-
"webpack": "4.29.6",
20-
"webpack-cli": "3.2.3",
21-
"webpack-dev-server": "3.2.1"
16+
"style-loader": "1.0.0",
17+
"ts-loader": "6.0.4",
18+
"typescript": "3.6.2",
19+
"webpack": "4.39.3",
20+
"webpack-cli": "3.3.7",
21+
"webpack-dev-server": "3.8.0"
2222
}
2323
}

src/entry.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import React from 'react'
2+
import ReactDOM from 'react-dom'
3+
14
import Hello from './hello'
2-
import * as React from 'react'
3-
import * as ReactDOM from 'react-dom'
45

56
ReactDOM.render(
6-
<Hello/>,
7-
document.body
7+
<Hello/>,
8+
document.body
89
)

tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
"compilerOptions": {
33
"strict": true,
44
"target": "es6",
5-
"module": "amd",
6-
"noImplicitAny": true,
7-
"removeComments": true,
8-
"preserveConstEnums": true,
9-
"moduleResolution": "node",
10-
"sourceMap": true,
5+
"module": "commonjs",
116
"jsx": "react",
127
"esModuleInterop": true,
138
"allowSyntheticDefaultImports": true

0 commit comments

Comments
 (0)