Skip to content

Commit 71f74b3

Browse files
authored
Reduce inline comment to only the part that is needed
1 parent bd1068f commit 71f74b3

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

webpack.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,7 @@ module.exports = {
7070
},
7171
keep_fnames: /(__|_n|_x|_nx)$/,
7272
format: {
73-
// Keep `translators:` comments in the built bundles. Terser's
74-
// default drops every comment except license banners, and
75-
// `wp i18n make-pot` scans build/*.bundle.js rather than src/,
76-
// so without this a translators comment written in src/ never
77-
// reaches the POT and the string stays undocumented.
78-
// This only preserves the comment, it does not extract it, so
79-
// the existing *.LICENSE.txt output is unaffected.
73+
// Keep `translators:` comments in the built bundles.
8074
comments: /translators:/i,
8175
},
8276
},

0 commit comments

Comments
 (0)