We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f624a6 + eaa1f68 commit b272211Copy full SHA for b272211
package.json
@@ -23,6 +23,7 @@
23
"@types/react": "^16.4.7",
24
"@types/react-dom": "^16.0.6",
25
"@types/tape": "^4.2.32",
26
+ "@types/webpack": "^4.4.10",
27
"prettier": "1.14.0",
28
"source-map-loader": "^0.2.3",
29
"tape": "^4.9.1",
webpack.config.js
@@ -1,6 +1,10 @@
1
+//@ts-check
2
+/** @typedef {import('webpack').Configuration} WebpackConfig **/
3
const nodeExternals = require('webpack-node-externals');
4
-module.exports = [
5
+
6
+/** @type WebpackConfig[] */
7
+const configs = [
8
{
9
entry: {
10
browser: './src/browser.tsx',
@@ -60,3 +64,5 @@ module.exports = [
60
64
externals: [nodeExternals()],
61
65
},
62
66
];
67
68
+module.exports = configs;
0 commit comments