feat: open obfuscate

This commit is contained in:
Jian Lu 2025-04-06 17:51:18 +08:00
parent a93eecbbb8
commit b1066e0b83

View File

@ -377,12 +377,12 @@ export async function buildProPluginServer(cwd: string, userConfig: UserConfig,
'.json': 'copy',
},
esbuildPlugins: [pluginEsbuildCommercialInject],
// onSuccess: async () => {
// const serverFiles = [path.join(cwd, target_dir, 'server', 'index.js')];
// serverFiles.forEach((file) => {
// obfuscate(file);
// });
// },
onSuccess: async () => {
const serverFiles = [path.join(cwd, target_dir, 'server', 'index.js')];
serverFiles.forEach((file) => {
obfuscate(file);
});
},
}),
);
fs.removeSync(tsconfig.path);