Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // iife
- (function(moduleArray) {
- var cache = {};
- function webpackRequire(index) {
- if (cache[index]) {
- return cache[index];
- }
- var module = { exports: {} };
- var file = moduleArray[index];
- file(module, webpackRequire);
- cache[index] = module.exports;
- return module.exports;
- }
- return webpackRequire(0);
- })(
- // All the dependencies here:
- [
- function(module, webpackRequire){
- var hypotenuse = webpackRequire(1);
- console.log(hypotenuse(3,4));
- },
- function(module, webpackRequire) {
- var square = webpackRequire(2);
- module.exports = function(a, b) {
- return Math.sqrt(square(a) + square(b));
- }
- },
- function(module, webpackRequire){
- module.exports = function(x) {
- return x * x;
- }
- }
- ]
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement