Skip to content

Commit

Permalink
Merge pull request #164 from avoidwork/fixWebPack
Browse files Browse the repository at this point in the history
Fix web pack
  • Loading branch information
avoidwork committed Sep 29, 2022
2 parents d826155 + 5c88c5f commit dcbe109
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/*
.idea/*
node_modules/
.idea/
test/webpack/
7 changes: 4 additions & 3 deletions dist/filesize.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function filesize (arg, {
}

// Partial application for functional programming
filesize.partial = function partial ({
function partial ({
bits = false,
pad = false,
base = -1,
Expand Down Expand Up @@ -231,6 +231,7 @@ filesize.partial = function partial ({
roundingMethod,
precision
});
};
}

exports["default"] = filesize;
exports.filesize = filesize;
exports.partial = partial;
4 changes: 2 additions & 2 deletions dist/filesize.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const STRINGS = {
}

// Partial application for functional programming
filesize.partial = function partial ({
function partial ({
bits = false,
pad = false,
base = -1,
Expand Down Expand Up @@ -225,4 +225,4 @@ filesize.partial = function partial ({
roundingMethod,
precision
});
};export{filesize as default};
}export{filesize,partial};
2 changes: 1 addition & 1 deletion dist/filesize.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/filesize.esm.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license BSD-3-Clause
* @version 10.0.3
*/
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?module.exports=f():typeof define==='function'&&define.amd?define(f):(g=typeof globalThis!=='undefined'?globalThis:g||self,g.filesize=f());})(this,(function(){'use strict';const ARRAY = "array";
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.filesize={}));})(this,(function(exports){'use strict';const ARRAY = "array";
const BIT = "bit";
const BITS = "bits";
const BYTE = "byte";
Expand Down Expand Up @@ -189,7 +189,7 @@ const STRINGS = {
}

// Partial application for functional programming
filesize.partial = function partial ({
function partial ({
bits = false,
pad = false,
base = -1,
Expand Down Expand Up @@ -225,4 +225,4 @@ filesize.partial = function partial ({
roundingMethod,
precision
});
};return filesize;}));
}exports.filesize=filesize;exports.partial=partial;Object.defineProperty(exports,'__esModule',{value:true});}));
2 changes: 1 addition & 1 deletion dist/filesize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dcbe109

Please sign in to comment.