Skip to content

Commit 91341b1

Browse files
committed
Fix types in webpack config
1 parent c61fe56 commit 91341b1

File tree

3 files changed

+121
-257
lines changed

3 files changed

+121
-257
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@types/jest": "^26.0.23",
3030
"@types/node": "^15.0.1",
3131
"@types/webpack": "^5.28.0",
32-
"@types/webpack-node-externals": "^2.5.1",
32+
"@types/webpack-node-externals": "^2.5.0",
3333
"@typescript-eslint/eslint-plugin": "^4.22.0",
3434
"@typescript-eslint/parser": "^4.22.0",
3535
"eslint": "^7.25.0",

webpack.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const config: Configuration = {
2828
path: path.resolve(__dirname, 'dist'),
2929
},
3030
devtool: 'source-map',
31-
externals: [nodeExternals()],
31+
// Type definitions are broke on webpack-node-externals
32+
externals: [nodeExternals() as any],
3233
};
3334

3435
export default config;

0 commit comments

Comments
 (0)