Skip to content

Commit 26d7a75

Browse files
committed
Upgrade babel to version 7
1 parent 0cd9a81 commit 26d7a75

File tree

4 files changed

+1476
-1416
lines changed

4 files changed

+1476
-1416
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function (grunt) {
2929
"babel": {
3030
options: {
3131
sourceMap: false,
32-
presets: ["babel-preset-env"]
32+
presets: ["@babel/preset-env"]
3333
},
3434
dist: {
3535
files: {

lib/filesize.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@
3636
var descriptor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3737
var result = [],
3838
val = 0,
39-
e = void 0,
40-
base = void 0,
41-
bits = void 0,
42-
ceil = void 0,
43-
full = void 0,
44-
fullforms = void 0,
45-
locale = void 0,
46-
localeOptions = void 0,
47-
neg = void 0,
48-
num = void 0,
49-
output = void 0,
50-
round = void 0,
51-
unix = void 0,
52-
separator = void 0,
53-
spacer = void 0,
54-
standard = void 0,
55-
symbols = void 0;
39+
e,
40+
base,
41+
bits,
42+
ceil,
43+
full,
44+
fullforms,
45+
locale,
46+
localeOptions,
47+
neg,
48+
num,
49+
output,
50+
round,
51+
unix,
52+
separator,
53+
spacer,
54+
standard,
55+
symbols;
5656

5757
if (isNaN(arg)) {
5858
throw new TypeError("Invalid number");

0 commit comments

Comments
 (0)