Skip to content

Commit 0af3439

Browse files
committed
Build: Don't include regular comments in the minified bundle
The `comments: true` setting does actually preserve all comments; docs just say the default behavior of SWC is to only preserve license comments.
1 parent 22ee0f6 commit 0af3439

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/swc-options.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ module.exports = {
88
},
99
format: {
1010
ecma: 5,
11-
asciiOnly: true,
12-
13-
// That only preserves license comments.
14-
// See https://swc.rs/docs/configuration/minification#note-about-comments
15-
comments: true
11+
asciiOnly: true
1612
},
1713
inlineSourcesContent: false,
1814
mangle: true,

0 commit comments

Comments
 (0)