发布 openmcp-sdk 0.0.3

This commit is contained in:
锦恢 2025-05-11 21:32:47 +08:00
parent eafc15bba6
commit de7d118d7b
3 changed files with 8 additions and 4 deletions

View File

@ -124,7 +124,6 @@ export class MessageBridge {
} }
private setupNodejsListener() { private setupNodejsListener() {
console.log('setup');
const emitter = this.setupSignature; const emitter = this.setupSignature;
if (!emitter.on || !emitter.emit) { if (!emitter.on || !emitter.emit) {

View File

@ -1,6 +1,6 @@
{ {
"name": "openmcp-sdk", "name": "openmcp-sdk",
"version": "0.0.2", "version": "0.0.3",
"description": "openmcp-sdk", "description": "openmcp-sdk",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"

View File

@ -35,10 +35,15 @@ module.exports = {
], ],
}, },
optimization: { optimization: {
minimize: false, // 禁用代码压缩 minimize: true, // Enable code compression
minimizer: [ minimizer: [
new TerserPlugin({ new TerserPlugin({
extractComments: false, // 禁用提取许可证文件 extractComments: false, // Disable extracting license files
terserOptions: {
compress: {
drop_console: true, // Remove all console.* calls
},
},
}), }),
], ],
}, },