Skip to content

Commit c282f06

Browse files
committed
upgrade packages
1 parent a2a10f5 commit c282f06

4 files changed

Lines changed: 764 additions & 637 deletions

File tree

package.json

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,33 @@
1010
"license": "MIT",
1111
"devDependencies": {
1212
"@types/chrome": "^0.0.128",
13-
"@types/react": "^16.9.32",
14-
"@types/react-dom": "^16.9.6",
13+
"@types/react": "^16.14.2",
14+
"@types/react-dom": "^16.9.10",
1515
"@types/rsocket-core": "^0.0.6",
1616
"@types/rsocket-types": "^0.0.2",
1717
"@types/rsocket-websocket-client": "^0.0.3",
18-
"clean-webpack-plugin": "^0.1.17",
19-
"copy-webpack-plugin": "^4.2.0",
20-
"css-loader": "^3.4.2",
18+
"clean-webpack-plugin": "^3.0.0",
19+
"copy-webpack-plugin": "^6.2.1",
20+
"css-loader": "^5.0.1",
2121
"file-loader": "^6.2.0",
22-
"fs-extra": "^0.30.0",
2322
"html-loader": "^1.3.2",
2423
"html-webpack-plugin": "4.5.1",
25-
"node-sass": "^4.13.1",
26-
"sass-loader": "^7.1.0",
27-
"style-loader": "^0.20.3",
28-
"ts-loader": "^4.0.1",
29-
"typescript": "^3.8.0",
24+
"node-sass": "^5.0.0",
25+
"sass-loader": "^10.1.1",
26+
"style-loader": "^2.0.0",
27+
"ts-loader": "^8.0.14",
28+
"typescript": "^4.1.3",
3029
"url-loader": "^4.1.1",
3130
"webpack": "^4.42.1",
32-
"webpack-cli": "^3.3.11",
33-
"webpack-merge": "^4.2.2"
31+
"webpack-cli": "^4.3.1"
3432
},
3533
"dependencies": {
3634
"classnames": "^2.2.6",
37-
"react": "^16.13.1",
38-
"react-dom": "^16.13.1",
35+
"react": "^16.14.0",
36+
"react-dom": "^16.14.0",
3937
"react-flex-panel": "^1.0.0",
40-
"react-fontawesome": "^1.6.1",
41-
"react-inspector": "^2.3.0",
38+
"react-fontawesome": "^1.7.1",
39+
"react-inspector": "^5.1.0",
4240
"rsocket-core": "^0.0.22",
4341
"rsocket-websocket-client": "^0.0.22"
4442
}

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
44
"esModuleInterop": true,
5-
"experimentalDecorators": true,
65
"jsx": "react",
76
"lib": ["ES2017", "dom"],
87
"module": "commonjs",
98
"moduleResolution": "node",
109
"outDir": "dist/js",
1110
"rootDir": "src",
1211
"sourceMap": true,
13-
"target": "es5"
12+
"target": "es6"
1413
}
1514
}

webpack.common.js

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require("path");
2-
const CleanWebpackPlugin = require("clean-webpack-plugin");
2+
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
33
const CopyWebpackPlugin = require("copy-webpack-plugin");
44
const HtmlWebpackPlugin = require("html-webpack-plugin");
55

@@ -26,15 +26,9 @@ module.exports = {
2626
exclude: /node_modules/,
2727
test: /\.scss$/,
2828
use: [
29-
{
30-
loader: "style-loader" // Creates style nodes from JS strings
31-
},
32-
{
33-
loader: "css-loader" // Translates CSS into CommonJS
34-
},
35-
{
36-
loader: "sass-loader" // Compiles Sass to CSS
37-
}
29+
{loader: "style-loader"},
30+
{loader: "css-loader"},
31+
{loader: "sass-loader"},
3832
]
3933
},
4034
{
@@ -62,22 +56,24 @@ module.exports = {
6256
]
6357
},
6458
plugins: [
65-
// // expose and write the allowed env vars on the compiled bundle
66-
// new webpack.DefinePlugin({
67-
// "process.env.NODE_ENV": JSON.stringify(env.NODE_ENV)
68-
// }),
69-
new CleanWebpackPlugin("dist"),
70-
new CopyWebpackPlugin([{
71-
from: "src/manifest.json",
72-
transform: function (content, path) {
73-
// generates the manifest file using the package.json informations
74-
return Buffer.from(JSON.stringify({
75-
description: process.env.npm_package_description,
76-
version: process.env.npm_package_version,
77-
...JSON.parse(content.toString())
78-
}));
79-
}
80-
}]),
59+
new CleanWebpackPlugin({
60+
dir: "dist"
61+
}),
62+
new CopyWebpackPlugin({
63+
patterns: [
64+
{
65+
from: "src/manifest.json",
66+
transform: function (content, path) {
67+
// generates the manifest file using the package.json informations
68+
return Buffer.from(JSON.stringify({
69+
description: process.env.npm_package_description,
70+
version: process.env.npm_package_version,
71+
...JSON.parse(content.toString())
72+
}));
73+
}
74+
}
75+
]
76+
}),
8177
new HtmlWebpackPlugin({
8278
template: path.join(__dirname, "src/inspector.html"),
8379
filename: "inspector.html",
@@ -88,7 +84,6 @@ module.exports = {
8884
filename: "devtools.html",
8985
chunks: ["devtools"]
9086
})
91-
// ,new WriteFilePlugin()
9287
],
9388
resolve: {
9489
extensions: [".ts", ".tsx", ".js"]

0 commit comments

Comments
 (0)