chore: no mangle classnames for better debugging (#9459)

This commit is contained in:
liuyi
2024-12-31 15:22:38 +08:00
committed by GitHub
parent 83915c2e90
commit 353eaf7fbe
3 changed files with 1 additions and 33 deletions
@@ -1,21 +0,0 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"composite": true,
"target": "ESNext",
"module": "ESNext",
"resolveJsonModule": true,
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true,
"noEmit": false,
"outDir": "./lib/tests",
"types": ["node", "affine__env"],
"allowJs": true
},
"references": [
{
"path": "./tsconfig.json"
}
],
"include": ["./test"]
}
@@ -1,12 +0,0 @@
// TODO(@forehalo): all packages would become 'module'
const path = require('node:path');
module.exports.config = {
entry: {
app: './renderer/index.tsx',
shell: './renderer/shell/index.tsx',
},
output: {
path: path.resolve(__dirname, './renderer/dist'),
},
};
+1
View File
@@ -39,6 +39,7 @@ const OptimizeOptionOptions: (
unused: true,
},
mangle: true,
keep_classnames: true,
},
}),
],