Skip to content

Instantly share code, notes, and snippets.

@joepie91

joepie91/a.js Secret

Created June 11, 2020 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joepie91/1817412795453314c6e22c67ced08c4f to your computer and use it in GitHub Desktop.
Save joepie91/1817412795453314c6e22c67ced08c4f to your computer and use it in GitHub Desktop.
"use strict";
let foo = require("./b");
console.log(foo);
module.exports = 42;
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
let foo = require("./b");
console.log(foo);
},{"./b":2}],2:[function(require,module,exports){
module.exports = 42;
},{}]},{},[1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment