initial commit

This commit is contained in:
Jörg Breitbart
2024-12-15 18:57:03 +01:00
parent e826f6b69f
commit 6bb2210a91
19 changed files with 698 additions and 15 deletions
+33
View File
@@ -0,0 +1,33 @@
/**
* Copyright (c) 2024 The xterm.js authors. All rights reserved.
* @license MIT
*/
const path = require('path');
const addonName = 'ProgressAddon';
const mainFile = 'addon-progress.js';
module.exports = {
entry: `./out/${addonName}.js`,
devtool: 'source-map',
module: {
rules: [
{
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre",
exclude: /node_modules/
}
]
},
output: {
filename: mainFile,
path: path.resolve('./lib'),
library: addonName,
libraryTarget: 'umd',
// Force usage of globalThis instead of global / self. (This is cross-env compatible)
globalObject: 'globalThis',
},
mode: 'production'
};