Skip to content

Commit e2a19cc

Browse files
Yakima-Tengposva
authored andcommitted
build(rollup): remove redundant use of Object.keys (vuejs#2176)
* redundant use of Object.keys * use instead of
1 parent fa77af4 commit e2a19cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (!fs.existsSync('dist')) {
99
fs.mkdirSync('dist')
1010
}
1111

12-
build(Object.keys(configs).map(key => configs[key]))
12+
build(configs)
1313

1414
function build (builds) {
1515
let built = 0
@@ -32,7 +32,7 @@ function buildEntry ({ input, output }) {
3232
.then(bundle => bundle.generate(output))
3333
.then(({ code }) => {
3434
if (isProd) {
35-
var minified = uglify.minify(code, {
35+
const minified = uglify.minify(code, {
3636
output: {
3737
preamble: output.banner,
3838
/* eslint-disable camelcase */

0 commit comments

Comments
 (0)