Files
scriptc/tests/fixtures/npm/node_modules/gtsubpath/dist/detect.js
T
Malte UblandClaude Opus 5.5 405f643742 Judge bundled packages by the files their imports can load
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>
2026-10-19 13:31:48 -07:00

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);
};