Skip to content

Instantly share code, notes, and snippets.

@juliangruber
Created June 17, 2013 11:44
Show Gist options
  • Select an option

  • Save juliangruber/5796306 to your computer and use it in GitHub Desktop.

Select an option

Save juliangruber/5796306 to your computer and use it in GitHub Desktop.
that's how small minimal browserify bundles are. uncompressed: 647B. compressed: 433B. Fuck yeah, JavaScript!
;(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
// your code
},{}]},{},[1])
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment