mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
- Keep CommonJS packages eligible for static compilation when export prologues precede require calls. - Preserve initialization order and early-access safeguards with frontend and native regression coverage. Fixes #37 Co-authored-by: vini <91087061+vinikjkkj@users.noreply.github.com>
13 lines
391 B
JavaScript
13 lines
391 B
JavaScript
'use strict';
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
exports.label = exports.version = void 0;
|
|
exports.describe = describe;
|
|
const browser = require('./browser.js');
|
|
exports.label = browser.name;
|
|
exports.version = '1';
|
|
console.log('early-export: initialized');
|
|
|
|
function describe() {
|
|
return 'browser:' + browser.name + ':' + exports.label + ':' + exports.version;
|
|
}
|