Skip to content

Instantly share code, notes, and snippets.

View SukantGujar's full-sized avatar

Sukant Gujar SukantGujar

View GitHub Profile
@SukantGujar
SukantGujar / main.bundle.prepack.js
Created May 15, 2017 07:49
Prepack experiments main.bundle.prepack.js
(function () {
var _$0 = this;
function $_0(level, message) {
return _3[level](message);
}
var _3 = console;
var _4 = $_0.bind(null, "error");
@SukantGujar
SukantGujar / main.bundle.js
Created May 15, 2017 07:41
Prepack experiment main.bundle.js
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["logger"] = factory();
else
root["prepack-experiments"] = root["prepack-experiments"] || {}, root["prepack-experiments"]["logger"] = factory();
})(this, function() {
@SukantGujar
SukantGujar / index.js
Last active April 20, 2018 04:42
Prepack experiment index.js
import reduce from "ramda/src/reduce";
import keys from "ramda/src/keys";
const log = function(target) {
return function(level) {
return function(message) {
return target[level](message);
};
};
};