Skip to content

Commit 0003b92

Browse files
committed
Upgrade dependencies
1 parent 42a2bdc commit 0003b92

File tree

4 files changed

+1980
-3427
lines changed

4 files changed

+1980
-3427
lines changed

lib/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22
'use strict'
3+
require('source-map-support').install()
34
const ora = require('ora')
45
const meow = require('meow')
56
const formatBenchmark = require('./format-benchmark')

lib/webpack.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ exports.compile = async (outputPath, benchmarkPath, debug) => {
3434
}
3535

3636
return new Promise((resolve, reject) => {
37+
/** @type {import('webpack').Configuration} */
3738
const config = {
3839
mode: debug ? 'development' : 'production',
3940
context: __dirname,
@@ -52,7 +53,6 @@ exports.compile = async (outputPath, benchmarkPath, debug) => {
5253
},
5354
output: {
5455
path: outputPath,
55-
filename: '[name].js',
5656
},
5757
plugins: [new HtmlWebpackPlugin()],
5858
performance: {
@@ -94,21 +94,12 @@ exports.compile = async (outputPath, benchmarkPath, debug) => {
9494
loader: 'source-map-loader',
9595
enforce: 'pre',
9696
})
97-
// Hack to fix webpack not loading the babel source maps for the
98-
// react-benchmark-test-component for some reason ¯\_(ツ)_/¯
99-
config.module.rules.push({
100-
test: /\.[jt]sx?$/,
101-
loader: 'source-map-loader',
102-
enforce: 'post',
103-
})
104-
config.devtool = 'cheap-module-inline-source-map'
97+
config.devtool = 'inline-cheap-module-source-map'
10598
}
10699

107100
webpack(config, (err, stats) => {
108-
const info = stats.toJson()
109-
110101
if (err || stats.hasErrors()) {
111-
return reject(err || info.errors[0])
102+
return reject(err || stats.toJson().errors[0])
112103
}
113104

114105
resolve()

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,52 +28,52 @@
2828
"node": ">=10"
2929
},
3030
"dependencies": {
31-
"@babel/core": "^7.4.5",
32-
"@types/benchmark": "^1.0.33",
33-
"@types/node": "*",
34-
"babel-loader": "^8.0.6",
31+
"@babel/core": "^7.13.8",
32+
"@types/benchmark": "^2.1.0",
33+
"@types/node": "^14.14.31",
34+
"babel-loader": "^8.2.2",
3535
"benchmark": "^2.1.4",
3636
"express": "^4.17.1",
3737
"fs-extra": "^9.0.1",
3838
"get-port": "^5.0.0",
39-
"html-webpack-plugin": "^4.5.0",
39+
"html-webpack-plugin": "^5.2.0",
4040
"humanize-number": "^0.0.2",
4141
"lodash": "^4.17.11",
42-
"meow": "^7.1.1",
42+
"meow": "^9.0.0",
4343
"ora": "^5.1.0",
44-
"pkg-dir": "^4.2.0",
44+
"pkg-dir": "^5.0.0",
4545
"pluralize": "^8.0.0",
46-
"puppeteer": "^5.3.1",
47-
"react": "^16.8.6",
48-
"react-dom": "^16.8.6",
46+
"puppeteer": "^8.0.0",
47+
"react": "^17.0.1",
48+
"react-dom": "^17.0.1",
4949
"resolve-from": "^5.0.0",
50-
"source-map-loader": "^1.1.0",
51-
"tempy": "^0.7.1",
50+
"source-map-loader": "^2.0.1",
51+
"source-map-support": "^0.5.19",
52+
"tempy": "^1.0.0",
5253
"ts-loader": "^8.0.4",
5354
"typescript": "^4.0.3",
54-
"webpack": "^4.33.0"
55+
"webpack": "^5.24.2"
5556
},
5657
"devDependencies": {
57-
"@babel/preset-env": "^7.4.5",
58-
"@babel/preset-react": "^7.0.0",
59-
"@types/react": "^16.9.49",
60-
"ava": "^3.12.1",
58+
"@babel/preset-env": "^7.13.9",
59+
"@babel/preset-react": "^7.12.13",
60+
"@types/react": "^17.0.2",
61+
"ava": "^3.15.0",
6162
"babel-eslint": "^10.1.0",
62-
"eslint": "^7.9.0",
63-
"eslint-config-prettier": "^6.12.0",
64-
"eslint-plugin-react": "^7.21.2",
65-
"execa": "^4.0.3",
63+
"eslint": "^7.21.0",
64+
"eslint-config-prettier": "^8.1.0",
65+
"eslint-plugin-react": "^7.22.0",
66+
"execa": "^5.0.0",
6667
"husky": "^4.3.0",
67-
"lint-staged": "^10.4.0",
68-
"prettier": "^2.1.2"
68+
"lint-staged": "^10.5.4",
69+
"prettier": "^2.2.1"
6970
},
7071
"eslintConfig": {
7172
"parser": "babel-eslint",
7273
"extends": [
7374
"eslint:recommended",
7475
"plugin:react/recommended",
75-
"prettier",
76-
"prettier/react"
76+
"prettier"
7777
],
7878
"env": {
7979
"es2017": true,

0 commit comments

Comments
 (0)