2021-09-18 03:35:53 +08:00
|
|
|
const terserConfig = require("terser-config-atomic")
|
|
|
|
|
|
|
|
const compress =
|
|
|
|
typeof terserConfig.compress !== "boolean"
|
|
|
|
? {
|
|
|
|
...terserConfig.compress,
|
|
|
|
global_defs: {
|
|
|
|
...terserConfig.compress.global_defs,
|
|
|
|
"process.env.NODE_DEBUG": false,
|
|
|
|
"process.env.RUNNER_DEBUG": "0",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
: terserConfig.compress
|
|
|
|
|
2023-05-27 03:00:04 +08:00
|
|
|
delete terserConfig.parse
|
|
|
|
|
2021-09-18 03:35:53 +08:00
|
|
|
module.exports = {
|
|
|
|
...terserConfig,
|
|
|
|
compress,
|
2022-04-25 08:03:57 +08:00
|
|
|
format: {
|
|
|
|
...terserConfig.format,
|
|
|
|
comments: false,
|
|
|
|
},
|
2021-09-18 03:35:53 +08:00
|
|
|
}
|