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
|
* 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
|
* 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`.
|
* 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',
|
entry: './out/headless/public/Terminal.js',
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
module: {
|
module: {
|
||||||
@@ -41,3 +43,4 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
mode: 'production'
|
mode: 'production'
|
||||||
};
|
};
|
||||||
|
module.exports = config;
|
||||||
|
|||||||
+6
-1
@@ -3,6 +3,8 @@
|
|||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// @ts-check
|
||||||
|
|
||||||
const path = require('path');
|
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
|
* (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
|
* 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`.
|
* 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',
|
entry: './out/browser/public/Terminal.js',
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
module: {
|
module: {
|
||||||
@@ -39,3 +43,4 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
mode: 'production'
|
mode: 'production'
|
||||||
};
|
};
|
||||||
|
module.exports = config;
|
||||||
|
|||||||
Reference in New Issue
Block a user