Sha256: b2347f3b800c45fddb67f15f8ac83f6ad21f5ad41331750ef6a4c8ba5370afc7

Contents?: true

Size: 1.42 KB

Versions: 9

Compression:

Stored size: 1.42 KB

Contents

require=(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})({"__RAILS_ROOT__/app/assets/javascripts/_stream_0.js":[function(require,module,exports){
var library = require('./a_huge_library');

module.exports = function() {
  console.log('library', library);
};

},{"./a_huge_library":"__RAILS_ROOT__/app/assets/javascripts/a_huge_library.js"}],"a_huge_library":[function(require,module,exports){
// pretend this file is 1 MB
//
// app_main.js is going to require() it and browserify.yml is going to tell it to use --require on it
//
// app_secondary.js is going to require() it too but we know app_main.js is always going to be loaded
// so browserify.yml will be configured to mark it as --external so it is not bundled in
//
// this results in app_main.js taking the cost of loading app_a_huge_library.js
//
// and app_secondary.js saving the cost of loading app_a_huge_library.js (because again,
// we know a priori that something else has loaded it)


module.exports = "THIS IS A HUGE LIBRARY";

},{}]},{},["__RAILS_ROOT__/app/assets/javascripts/_stream_0.js"]);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
browserify-rails-3.1.0 test/fixtures/main.out.js
browserify-rails-3.0.1 test/fixtures/main.out.js
browserify-rails-3.0.0 test/fixtures/main.out.js
browserify-rails-2.2.1 test/fixtures/main.out.js
browserify-rails-2.2.0 test/fixtures/main.out.js
browserify-rails-2.1.0 test/fixtures/main.out.js
browserify-rails-2.0.3 test/fixtures/main.out.js
browserify-rails-2.0.2 test/fixtures/main.out.js
browserify-rails-1.5.0 test/fixtures/main.out.js