mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
ts-check webpack configs
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user