Skip to content

Commit 434974e

Browse files
chore: upgrade to latest webpack tooling
1 parent c1e3dfb commit 434974e

File tree

4 files changed

+1291
-1785
lines changed

4 files changed

+1291
-1785
lines changed

examples/typescript/components/Nest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface NextInjectedProps extends UIViewInjectedProps {
77

88
export class Nest extends React.Component<NextInjectedProps, any> {
99
uiCanExit = () => {
10-
return new Promise(resolve => {
10+
return new Promise<void>((resolve) => {
1111
setTimeout(() => {
1212
resolve();
1313
}, 1000);

examples/typescript/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ var config = {
2929
},
3030
],
3131
},
32+
devServer: {
33+
static: {
34+
directory: './examples/typescript',
35+
},
36+
},
3237
};
3338

3439
module.exports = config;

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test": "jest",
1111
"test:debug": "node --inspect ./node_modules/.bin/jest --runInBand --watch",
1212
"test:downstream": "npm run build && test_downstream_projects",
13-
"start": "cross-env NODE_ENV=development webpack-dev-server --host 0.0.0.0 --port 8000 --config ./examples/typescript/webpack.config.js --history-api-fallback --content-base examples/typescript",
13+
"start": "cross-env NODE_ENV=development webpack-dev-server --host 0.0.0.0 --port 8000 --config ./examples/typescript/webpack.config.js --history-api-fallback",
1414
"clean": "shx rm -rf _bundles lib lib-esm build _doc",
1515
"compile": "npm run clean && tsc && tsc -m es6 --outDir lib-esm",
1616
"bundle": "cross-env NODE_ENV=production webpack",
@@ -74,11 +74,11 @@
7474
"ts-jest": "^27.0.4",
7575
"ts-loader": "^9.2.3",
7676
"ts-node": "^10.1.0",
77-
"tsconfig-paths-webpack-plugin": "^3.3.0",
77+
"tsconfig-paths-webpack-plugin": "^4.2.0",
7878
"typescript": "^4.3.5",
79-
"webpack": "^5.46.0",
80-
"webpack-cli": "^4.7.2",
81-
"webpack-dev-server": "^3.9.0"
79+
"webpack": "^5.101.3",
80+
"webpack-cli": "^6.0.1",
81+
"webpack-dev-server": "^5.2.2"
8282
},
8383
"jest": {
8484
"setupFiles": [

0 commit comments

Comments
 (0)