From e78f85bf656c8e1db9533c9df3fba6958bc9f5cf Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:29:45 -0700 Subject: [PATCH] ts-check webpack configs --- webpack.config.headless.js | 5 ++++- webpack.config.js | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/webpack.config.headless.js b/webpack.config.headless.js index d5bb97b7..9e9099cd 100644 --- a/webpack.config.headless.js +++ b/webpack.config.headless.js @@ -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; diff --git a/webpack.config.js b/webpack.config.js index 4f9087b5..ca7c059a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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;