Skip to content

Commit eaa1f68

Browse files
committed
Add ts-check to webpack.config.js
1 parent 7f624a6 commit eaa1f68

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@types/react": "^16.4.7",
2424
"@types/react-dom": "^16.0.6",
2525
"@types/tape": "^4.2.32",
26+
"@types/webpack": "^4.4.10",
2627
"prettier": "1.14.0",
2728
"source-map-loader": "^0.2.3",
2829
"tape": "^4.9.1",

webpack.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
//@ts-check
2+
/** @typedef {import('webpack').Configuration} WebpackConfig **/
13
const nodeExternals = require('webpack-node-externals');
24

3-
module.exports = [
5+
6+
/** @type WebpackConfig[] */
7+
const configs = [
48
{
59
entry: {
610
browser: './src/browser.tsx',
@@ -60,3 +64,5 @@ module.exports = [
6064
externals: [nodeExternals()],
6165
},
6266
];
67+
68+
module.exports = configs;

0 commit comments

Comments
 (0)