Skip to content

Commit

Permalink
fix: Explicitly set comment preservation option when building (#756)
Browse files Browse the repository at this point in the history
* Explicit comment setting when building

* Whitespace

---------

Co-authored-by: Craig Slusher <cslusher@obsidiansecurity.com>
  • Loading branch information
sleekslush and sleekslush authored Sep 8, 2023
1 parent efcc29b commit e10c985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/parcel-optimizer-es/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e10c985

Please sign in to comment.