UNPKG

minifyify

Version:

Minify your browserify bundles without losing the sourcemap

39 lines (29 loc) 1.78 kB
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ // entry.js NOT_MINIFIED var submodule = require('./submodule') , jsonthing = require('./jsonthing.json') , myString , actual , expected; myString = submodule.createString(function () { var mathy = 1 + 1 + 2 + 3 + 5 + 8; mathy *= 1337; return 'potato #' + mathy + jsonthing.turkey; }); actual = document.createElement('pre'); expected = document.createElement('pre'); actual.innerHTML = 'Actual: ' + myString; expected.innerHTML = 'Expected: Wed Dec 31 1969 22:30:23 GMT-0800 (PST) friedpotato #26740salmonbakedpotato #26740salmonsliced potato #26740salmon'; document.body.appendChild(actual); document.body.appendChild(expected) },{"./jsonthing.json":2,"./submodule":3}],2:[function(require,module,exports){ module.exports={ "unminified": "jsonthing.json", "turkey": "salmon" } },{}],3:[function(require,module,exports){ var subsubmodule=require("./subsubmodule");module.exports={createString:function(e){var u,r;return u=subsubmodule.getTheDate(function(){var u;return u=["fried","baked","sliced"],u.join(e())}),r=e(),u+" "+r}}; },{"./subsubmodule":4}],4:[function(require,module,exports){ var getTheDate=function(e){var t=e();return"Wed Dec 31 1969 22:30:23 GMT-0800 (PST) "+t};module.exports={getTheDate:getTheDate}; },{}]},{},[1]) //# sourceMappingURL=bundle.map