diff --git a/core/parcel-optimizer-es/src/index.ts b/core/parcel-optimizer-es/src/index.ts index 6ef44ef0a..dc9f55944 100644 --- a/core/parcel-optimizer-es/src/index.ts +++ b/core/parcel-optimizer-es/src/index.ts @@ -50,6 +50,9 @@ export default new Optimizer({ jsc: { target: process.env.__PLASMO_FRAMEWORK_INTERNAL_ES_TARGET, minify: { + format: { + comments: shouldMinify ? "some" : "all" + }, mangle: shouldMinify, compress: shouldMinify, sourceMap: sourceMapType !== "none",