feat(core): 添加module.json和类型定义更新

This commit is contained in:
yhh
2025-12-03 16:20:59 +08:00
parent 37ab494e4a
commit 13cb670a16
25 changed files with 1107 additions and 198 deletions

View File

@@ -70,7 +70,7 @@ module.exports = [
warn(warning);
},
treeshake: {
moduleSideEffects: false,
moduleSideEffects: (id) => id.includes('reflect-metadata'),
propertyReadSideEffects: false,
unknownGlobalSideEffects: false
}
@@ -102,7 +102,7 @@ module.exports = [
warn(warning);
},
treeshake: {
moduleSideEffects: false
moduleSideEffects: (id) => id.includes('reflect-metadata')
}
},
@@ -133,7 +133,7 @@ module.exports = [
warn(warning);
},
treeshake: {
moduleSideEffects: false
moduleSideEffects: (id) => id.includes('reflect-metadata')
}
},
@@ -193,10 +193,10 @@ module.exports = [
warn(warning);
},
treeshake: {
moduleSideEffects: false
moduleSideEffects: (id) => id.includes('reflect-metadata')
}
},
// 类型定义构建
{
input: 'bin/index.d.ts',