mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-07 08:33:50 +08:00
Interop the rewrite cannot finish now refuses its package only when the compiled program can load that file: the module order closed over every literal require() and import() and, in package JavaScript, every import and export declaration (a computed specifier keeps every file loadable). A package reached through a leaf subpath and types from its main entry stays static. Auto mode also no longer refuses a whitespace/syntax minified bundle whose interop helpers keep their names: the recognizers judge it instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
341 B
JavaScript
12 lines
341 B
JavaScript
// A hand-rolled __toESM the recognizer cannot verify (see gtdrift).
|
|
"use strict";
|
|
var __toESM = (mod) => {
|
|
var ns = { default: mod };
|
|
for (var key in mod) ns[key] = mod[key];
|
|
return ns;
|
|
};
|
|
var import_gtcore = __toESM(require("gtcore"));
|
|
exports.detect = function detect(files) {
|
|
return import_gtcore.default.label(files.length);
|
|
};
|