UNPKG

minifyify

Version:

Minify your browserify bundles without losing the sourcemap

1 lines 2.69 kB
{"version":3,"sources":["../../../node_modules/browser-pack/_prelude.js","entry.js","jsonthing.json","submodule.js","subsubmodule.js"],"names":["subsubmodule","require","module","exports","createString","mathFunction","date","someNumber","getTheDate","potatoes","join","someFunction","someValue"],"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;AACA;AACA;;ACxBA;AACA;AACA;AACA;;ACDA,GAAIA,cAAeC,QAAQ,iBAE3BC,QAAOC,SACLC,aAAc,SAAUC,GACtB,GAAIC,GACAC,CAYJ,OAVAD,GAAON,aAAaQ,WAAW,WAC7B,GAAIC,EAIJ,OAFAA,IAAY,QAAS,QAAS,UAEvBA,EAASC,KAAKL,OAGvBE,EAAaF,IAENC,EAAO,IAAMC;;ACjBxB,GAAIC,YAAa,SAAUG,GACzB,GAAIC,GAAYD,GAEhB,OAAM,2CAA6CC,EAGrDV,QAAOC,SACLK,WAAYA","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})","// entry.js NOT_MINIFIED\n\nvar submodule = require('./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","module.exports={\n \"unminified\": \"jsonthing.json\",\n \"turkey\": \"salmon\"\n}","// submodule.js NOT_MINIFIED\n\nvar subsubmodule = require('./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","// 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"]}