-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowserify_require.js
26 lines (20 loc) · 1.38 KB
/
browserify_require.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.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){
window._count = 0;
console.log("\n\nCounts when required with browserify!");
var module_a = require("./modules/a");
var module_b = require("./modules/b");
var module_c = require("./modules/c");
},{"./modules/a":3,"./modules/b":4,"./modules/c":5}],2:[function(require,module,exports){
window._count = window._count || 0;
window._count++;
module.exports = {count: window._count};
},{}],3:[function(require,module,exports){
var counter = require("../lib/counter");
console.log("Module A: The counter has been initialized " + counter.count + " times.");
},{"../lib/counter":2}],4:[function(require,module,exports){
var counter = require("../lib/counter");
console.log("Module B: The counter has been initialized " + counter.count + " times.");
},{"../lib/counter":2}],5:[function(require,module,exports){
var counter = require("../lib/counter");
console.log("Module C: The counter has been initialized " + counter.count + " times.");
},{"../lib/counter":2}]},{},[1])