PHP 8.2.30
Preview: lazy.js Size: 1.30 KB
//home/byroehnu/easepay.easetack.com/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.lazyImportsHook = void 0;
var _core = require("@babel/core");
var _helperModuleTransforms = require("@babel/helper-module-transforms");
const lazyImportsHook = lazy => ({
  name: `${"@babel/plugin-transform-modules-commonjs"}/lazy`,
  version: "7.28.6",
  getWrapperPayload(source, metadata) {
    if ((0, _helperModuleTransforms.isSideEffectImport)(metadata) || metadata.reexportAll) {
      return null;
    }
    if (lazy === true) {
      return source.includes(".") ? null : "lazy/function";
    }
    if (Array.isArray(lazy)) {
      return !lazy.includes(source) ? null : "lazy/function";
    }
    if (typeof lazy === "function") {
      return lazy(source) ? "lazy/function" : null;
    }
  },
  buildRequireWrapper(name, init, payload, referenced) {
    if (payload === "lazy/function") {
      if (!referenced) return false;
      return _core.template.statement.ast`
        function ${name}() {
          const data = ${init};
          ${name} = function(){ return data; };
          return data;
        }
      `;
    }
  },
  wrapReference(ref, payload) {
    if (payload === "lazy/function") return _core.types.callExpression(ref, []);
  }
});
exports.lazyImportsHook = lazyImportsHook;

//# sourceMappingURL=lazy.js.map

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:05
Edit Download
782 B lrw-r--r-- 2026-02-28 00:26:54
Edit Download
1.82 KB lrw-r--r-- 2026-02-28 00:27:06
Edit Download
1.11 KB lrw-r--r-- 2026-02-28 00:27:14
Edit Download
3.35 KB lrw-r--r-- 2026-02-28 00:27:24
Edit Download
8.03 KB lrw-r--r-- 2026-02-28 00:27:34
Edit Download
18.98 KB lrw-r--r-- 2026-02-28 00:27:42
Edit Download
1.30 KB lrw-r--r-- 2026-02-28 00:27:46
Edit Download
2.80 KB lrw-r--r-- 2026-02-28 00:27:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).