ts-check webpack configs

This commit is contained in:
Daniel Imms
2023-08-23 16:29:45 -07:00
parent 9be0b6d918
commit e78f85bf65
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -10,8 +10,10 @@ const path = require('path');
* from tsc (via `yarn watch` or `yarn prebuild`) which are put into `out/` and webpacks them into a
* production mode umd library module in `lib-headless/`. The aliases are used fix up the absolute
* paths output by tsc (because of `baseUrl` and `paths` in `tsconfig.json`.
*
* @type {import('webpack').Configuration}
*/
module.exports = {
const config = {
entry: './out/headless/public/Terminal.js',
devtool: 'source-map',
module: {
@@ -41,3 +43,4 @@ module.exports = {
},
mode: 'production'
};
module.exports = config;
+6 -1
View File
@@ -3,6 +3,8 @@
* @license MIT
*/
// @ts-check
const path = require('path');
/**
@@ -10,8 +12,10 @@ const path = require('path');
* (via `yarn watch` or `yarn prebuild`) which are put into `out/` and webpacks them into a
* production mode umd library module in `lib/`. The aliases are used fix up the absolute paths
* output by tsc (because of `baseUrl` and `paths` in `tsconfig.json`.
*
* @type {import('webpack').Configuration}
*/
module.exports = {
const config = {
entry: './out/browser/public/Terminal.js',
devtool: 'source-map',
module: {
@@ -39,3 +43,4 @@ module.exports = {
},
mode: 'production'
};
module.exports = config;