var installedModules = {};
// The require function 请求函数
function __webpack_require__(moduleId) {
// Check if module is in cache
if (installedModules[moduleId]) {
return installedModules[moduleId].exports;
// Create a new module (and put it into the cache)
var module = (installedModules[moduleId] = {
// Execute the module function
// 执行模块函数(有点不懂为什么 this 要传入 module.exports)
module.exports, // 模块对象的 exports 属性
__webpack_require__, // 请求函数最终返回模块输出,传入用于请求其他模块
// Flag the module as loaded
// Return the exports of the module
// expose the modules object (__webpack_modules__)
__webpack_require__.m = modules;
// expose the module cache
__webpack_require__.c = installedModules;
// Object.prototype.hasOwnProperty.call
__webpack_require__.o = function (object, property) {
return Object.prototype.hasOwnProperty.call(object, property);
// define getter function for harmony exports
// 为 ES6 export 定义 getter 函数
__webpack_require__.d = function (exports, name, getter) {
if (!__webpack_require__.o(exports, name)) {
Object.defineProperty(exports, name, { enumerable: true, get: getter });
// define __esModule on exports
// 于 export 定义 __esModule
__webpack_require__.r = function (exports) {
if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
Object.defineProperty(exports, "__esModule", { value: true });
// create a fake namespace object
// mode & 1: value is a module id, require it
// mode & 2: merge all properties of value into the ns
// mode & 4: return value when already ns object
// mode & 8|1: behave like require
__webpack_require__.t = function (value, mode) {
if (mode & 1) value = __webpack_require__(value);
if (mode & 8) return value;
if (mode & 4 && typeof value === "object" && value && value.__esModule) return value;
var ns = Object.create(null);
__webpack_require__.r(ns);
Object.defineProperty(ns, "default", { enumerable: true, value: value });
if (mode & 2 && typeof value != "string")
// getDefaultExport function for compatibility with non-harmony modules
// 用于兼容非 ES6 模块的 getDefaultExport 函数
__webpack_require__.n = function (module) {
module && module.__esModule
? function getDefault() {
return module["default"];
: function getModuleExports() {
__webpack_require__.d(getter, "a", getter);
// __webpack_public_path__
__webpack_require__.p = "";
// Load entry module and return exports
return __webpack_require__((__webpack_require__.s = "./src/index.js"));
/*! exports provided: default */
function (module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__); // 于 export 定义 __esModule
var _shouldImport__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/shouldImport.js");
let test = "this is a variable";
/* harmony default export */
__webpack_exports__["default"] = {
a: test + "," + _shouldImport__WEBPACK_IMPORTED_MODULE_0__["sth"],
other: _shouldImport__WEBPACK_IMPORTED_MODULE_0__["default"],
/*! exports provided: sth, default */
function (module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "sth", function () {
let sth = "something you need";
__webpack_exports__["default"] = {