minifyify
Version:
Minify your browserify bundles without losing the sourcemap
1 lines • 2.86 kB
JSON
{"version":3,"sources":["../../../node_modules/browser-pack/_prelude.js","dirA/submodule.js","jsonthing.json","entry.js","dirB/subsubmodule.js"],"names":["submodule","require","jsonthing","myString","actual","expected","createString","mathy","turkey","document","createElement","innerHTML","body","appendChild","getTheDate","someFunction","someValue","module","exports"],"mappings":"AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AGpBA,GAAIc,YAAa,SAAUC,GACzB,GAAIC,GAAYD,GAEhB,OAAM,2CAA6CC,EAGrDC,QAAOC,SACLJ,WAAYA;;ADPd,GAAId,WAAYC,QAAQ,oBACpBC,UAAYD,QAAQ,oBACpBE,SACAC,OACAC,QAEJF,UAAWH,UAAUM,aAAa,WAChC,GAAIC,GAAQ,EAIZ,OAFAA,IAAS,KAEF,WAAaA,EAAQL,UAAUM,SAGxCJ,OAASK,SAASC,cAAc,OAChCL,SAAWI,SAASC,cAAc,OAElCN,OAAOO,UAAc,aAAeR,SACpCE,SAASM,UAAY,+HAErBF,SAASG,KAAKC,YAAYT,QAC1BK,SAASG,KAAKC,YAAYR;;ADvB1B;AACA;AACA;AACA","file":"bundle.js","sourcesContent":["(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})","// submodule.js NOT_MINIFIED\n\nvar subsubmodule = require('../dirB/subsubmodule');\n\nmodule.exports = {\n createString: function (mathFunction) {\n var date\n , someNumber;\n\n date = subsubmodule.getTheDate(function () {\n var potatoes;\n\n potatoes = ['fried', 'baked', 'sliced'];\n\n return potatoes.join(mathFunction());\n });\n\n someNumber = mathFunction();\n\n return date + ' ' + someNumber;\n }\n};\n","module.exports={\n \"unminified\": \"jsonthing.json\",\n \"turkey\": \"salmon\"\n}","// entry.js NOT_MINIFIED\n\nvar submodule = require('./dirA/submodule')\n , jsonthing = require('./jsonthing.json')\n , myString\n , actual\n , expected;\n\nmyString = submodule.createString(function () {\n var mathy = 1 + 1 + 2 + 3 + 5 + 8;\n\n mathy *= 1337;\n\n return 'potato #' + mathy + jsonthing.turkey;\n});\n\nactual = document.createElement('pre');\nexpected = document.createElement('pre');\n\nactual.innerHTML = 'Actual: ' + myString;\nexpected.innerHTML = 'Expected: Wed Dec 31 1969 22:30:23 GMT-0800 (PST) friedpotato #26740salmonbakedpotato #26740salmonsliced potato #26740salmon';\n\ndocument.body.appendChild(actual);\ndocument.body.appendChild(expected)\n","// subsubmodule.js NOT_MINIFIED\n\nvar getTheDate = function (someFunction) {\n var someValue = someFunction();\n\n return'Wed Dec 31 1969 22:30:23 GMT-0800 (PST) ' + someValue;\n};\n\nmodule.exports = {\n getTheDate: getTheDate\n};\n"]}