mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
- 2465-2468 byte-match Node fully static: the esbuild __export table, the __reExport star, the tsc __exportStar barrel, and the defineProperty getter family - 2469 pins consumer-anchored degradation: a type-only surface name drops exactly the named package to the island with the site-count note - auto opts a getter-table bundle in (the marker relaxation), and the untyped-package stub pin replaces the accidental inferred-surface bonus - the island differential lane excludes the opt-in-only cases by design
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
"use strict";
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __export = (target, all) => {
|
|
for (var name in all)
|
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
};
|
|
var __copyProps = (to, from, except, desc) => {
|
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
for (let key of __getOwnPropNames(from))
|
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
}
|
|
return to;
|
|
};
|
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
var src_exports = {};
|
|
__export(src_exports, {
|
|
VERSION: () => VERSION,
|
|
counterStart: () => counter,
|
|
greet: () => greet2,
|
|
metaTag: () => pkgmeta.tag
|
|
});
|
|
module.exports = __toCommonJS(src_exports);
|
|
const VERSION = "2.4.6";
|
|
var pkgmeta = { tag: "gt" };
|
|
var counter = 40 + 2;
|
|
function greet2(name) {
|
|
return "hi " + name + "!";
|
|
}
|
|
function makeChunk(exports) {
|
|
exports.chunkGhost = 1;
|
|
return exports;
|
|
}
|
|
// Annotate the CommonJS export names for ESM import in node:
|
|
0 && (module.exports = {
|
|
VERSION,
|
|
counterStart,
|
|
greet,
|
|
metaTag
|
|
});
|