Skip to content

Commit ef9edec

Browse files
committed
small optimization
1 parent 088215c commit ef9edec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ module.exports = {
258258
},
259259
],
260260
renderLicenses: (modules) => {
261+
const line = '-'.repeat(80);
261262
return modules.map((module) => {
262263
const {name, version} = module.packageJson;
263264
const {licenseId, licenseText} = module;
264-
const line = '-'.repeat(80);
265265
const body = wrapAnsi(licenseText || '', 80);
266266
return `${line}\n${name}@${version} - ${licenseId}\n${line}\n${body}`;
267267
}).join('\n');

0 commit comments

Comments
 (0)